Closed osimkin closed 2 years ago
My advice to you is:
You obviously have no clue about what you're doing. Stop running commands / scripts you find on the internet if you don't understand exactly what they are doing, especially on a passwordless administrator account.
sudo
is a different program that has nothing to do with ConEmu. You most likely installed it as part of something bigger (probably Cygwin, MSYS, MinGW or something similar).
That line you pasted:
curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
runs 3 programs:
curl
- a utility used to make web requests. In this case, it downloads a shell script located at the URL that follows it.sudo
- a utility used to execute programs with elevated privileges (Super User = the "su" in "sudo"). In this case, it is used to run the 3rd program.bash
- a shell program (Bourne Again SHell). In your case, it will receive the downloaded shell script and execute it (with super user privileges, because of sudo
)Moreover, that command will fail even if you provided a correct password, because the downloaded shell script is meant to install SpeedTest on RPM based Linux distributions (like Fedora, Suse or CentOS, to name a few).
However, there might be the option that you actually connected to a remote machine (server, router, some IoT device, etc.) and you're trying to install that thing on the remote machine... That is just as reckless as running it on your local machine and the above explanation of the programs is still valid!
But, to answer your question, the password you need to provide is the password for the current user on that machine (assuming the current user has root
privileges).
Bottom line: this is not related to ConEmu and you're exposing yourself to great danger doing this sort of stuff.
I bet you are scared of your own shadow. Relax.
No one cares to cause any harm to you.
Also, I feel that you are so proud that you were able to google the meaning of three programs and in primitive desire to impress someone.
Based on your tone and approach, you will never be a good teacher nor mentor.
Strong IT specialist never approaches answering simple question with such pathos.
ConEmu has nothing to do with your user accounts or your WSL / Cygwin installation. When you install Ubuntu for Windows it asks you to set a password, this password will be used when you sudo. Linux for windows cannot use your windows account.
You should never run windows administrator accounts without password and you should never disable UAC etc.
Your attitude is beyond terrible. A user tries to help you and explain what the commands you copy paste do. You accuse him off googling commands? Are you serious, those commands should be known by everyone, no linux user has to google any of that...
To EJH,
You are mistaken. The attitude of the user "ionut-botizan" was terrible and shallow in first place. Please re-read his comment in full. PS: This is one of big issue in nowdays. Many people simply unable to read and understand.
His advice is very good advice. Do not copy paste snippets that you do not understand into a shell, doesn't matter if its windows cmd or bash.
Piping curl into bash is easy and convenient, but it is about as unsafe as it gets, especially when you run under root. You are giving speedtest (or a man in the middle) full root access to your system.
Again. Your problem has nothing to do with ConEmu, when you installed your linux distro (I assume you run Ubuntu for windows) you were prompted with creating a user and setting a password for sudo.
I suggest you use your favorite search engine and search for "reset sudo password ubuntu for windows", then pick a helpful resource of your own choice.
First thing you need to figure out is what kind of linux like system you are running. ConEmu does not come with any bash variants. Its up to you to install these. Windows 10 has the option of running linux distros under WSL (Windows Subsystem for Linux) but there is many other ways to run posix compatible software under windows, including (as @ionit-botizan mentions) Cygwin, MSYS, MinGW and probably others.
How did you install bash in the first place? That might help you determine what flavor you are using.
ConEmu: Version 210912. It is stable version It is running on Windows 10
Problem description
While executing various commands which require "sudo", the prompt for sudo password is presented in a terminal. However, I've never setup neither sudo user nor a password for sudo while installing ConEmu on Windows 10. Also, my account MYUSER on windows is not protected by any password. MYUSER is a local administrator on Windows 10 machine.
Steps to reproduce
Example, I need to install CLI for speed test curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
Actual results
Now, I'm seeing [sudo] password for MYUSER:
Expected results
How do I re-set the password for sudo?