{ 8 comments… read them below or add one }

1 Prabhu December 8, 2010 at 10:52 am

1. Switch to root
[user1@localhost ~]$ su –
Password:

2. Change password for user2
[root@localhost ~]# passwd user2
Changing password for user user2.
New password:
BAD PASSWORD: it is WAY too short
BAD PASSWORD: is a palindrome
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#

Reply

2 ameen March 9, 2011 at 10:47 am

wat can chang passward of root
he can chang passwad of root

Reply

3 RambabuKella February 10, 2012 at 9:52 pm

[root@localhost ~]# useradd speed
[root@localhost ~]# passwd speed < rambabu
> rambabu
> EOF
Changing password for user speed.
New password: BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password: passwd: all authentication tokens updated successfully.
[root@localhost ~]# useradd abcde
[root@localhost ~]# echo “password” | passwd –stdin abcde
Changing password for user abcde.
passwd: all authentication tokens updated successfully.

Reply

4 err0rw0rse April 18, 2012 at 4:51 am

Hello ! i want to ask how i can change password for root if i forget my root pass and my linux is also need a login password . i forget login password for my user name ******* .how i can login to my workspace .

Reply

5 Mohit Shukla January 2, 2013 at 8:35 am

Login in single user mode and change the password. When you start the system just press the Ctrl+x for login in single user mode. And you will login there as root without password and you can change there your root password.

Reply

6 marimuthu February 21, 2013 at 5:36 pm

booting the machine, at that time press “a” then click the space bar and type “s” then click enter first we check if it is enforcing mode or permissive mode by using this “getenforce” command if it is “enforcing” setenforce 0 then it will be change permissive mode . then “passwd –stdin root” type the password that’s it…………

Reply

7 Lawrence D. Noble, Sr. May 11, 2013 at 7:05 pm

How about changing user I D and password not knowing either? Who am I requesting this info. from? Thanks ldn

Reply

8 eeezyy October 7, 2014 at 9:15 am

If you are sudo-user you can also change your root password, without logging in into root:

> sudo su
> passwd

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: