9 comment

  1. 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 ~]#

  2. [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.

  3. 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 .

  4. 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.

  5. 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…………

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

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

    > sudo su
    > passwd

  8. For the “issue”: BAD PASSWORD: it is based on a dictionary word

    Try this: (you should be ROOT)

    cd /etc/pam.d
    vi system-auth

    Comment all the three lines

    # password requisite pam_cracklib.so try_first_pass retry=3
    # password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
    # password required pam_deny.so

    Add this line

    password sufficient /lib/security/$ISA/pam_unix.so nullok md5 shadow

    Make sure that you keep a login session open and test from another session.
    This way you will not lock yourself out.

    Good luck!
    On RHEL66 it works.
    Nick.

Comments are closed.