computer






 

Question by  santosh (31)

How do you change the root password in Linux?

I am using the single user mode and am on a red hat server.

 
+7

Answer by  Ragetip (77)

To get to single user mode,if you're using LILO,type "linux single". Then once you're dropped to a command line,type "passwd". From there,you can change it.

 
+7

Answer by  pm11 (85)

To change the root password you have to open a terminal, and type "su" to become root. Then type "passwd" command and will be the request for a new password.

 
+5

Answer by  Phil28 (379)

Login as root, then use a shell to use the command "yppasswd" to change you password. Remember to pick a good one since root is the most priveleged user available.

 
+5

Answer by  chicagobrad (16)

If you are logged in as root, simply type the following at the command prompt: passwd If you are logged in as another user that has administrative access, you can run: passwd root You may need to use the 'sudo' command if you are not logged in as root.

 
+5

Answer by  pcguy (307)

the root password is changed by using the passwd command. You need to access a terminal by pressing alt-F2 and typing "terminal", press run and the terminal opens. type "passwd root", press enter. You are prompted to type the new root password twice, and the old one once.

 
You have 50 words left!