If I change the password for the root user is that going to automatically change the password for the user account?
I found this link for root:
WikiHow: How to Change the Root Password in Linux
How do I change the user account password?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityIf I change the password for the root user is that going to automatically change the password for the user account?
I found this link for root:
WikiHow: How to Change the Root Password in Linux
How do I change the user account password?
To do it using command line:
To change the root password:
sudo passwd
To change your user password:
passwd
To change other users password:
sudo passwd USERNAME
To do it GUI open the application User Accounts
from the Dash and there you can change password easily for all users unless the root
root
password is not the same as "the admin" password. If you want to change an admin password for the current user, use the version without sudo
. (This was not obvious to me, coming from a Windows background.)
sudo
with any command you are running as root, and thus sudo passwd
will reset password for user root. Running passwd
will reset the password for the existing user.
Sep 19, 2016 at 22:26
sudo
which was of course wrong. This threw me and I had to reread the answer (which is correct) to understand the situation. I posted the comment to help others who may have this same incorrect interpretation of the answer.
sudo
command, is used to ‘prove’ that it is really that user at the keyboard. And root is a user that has all admin privileges by default and doesn't need to use sudo
to exercise those privileges. (Use sudo -i
to ‘become’ root.)
As a user, you can change your own password in a terminal, using passwd
. You will be asked for the current password and can then enter a new one.
On Ubuntu, there normally is no separate password for root. Instead, users with administrator privileges may use sudo
to run commands as a super user.
http://www.cyberciti.biz/faq/changing-password-of-specific-account-in-linux-commandline/
but still thanks for clarifying.