Share this on (or read 9 comments/add one below):

9 comment

  1. [[email protected] ~]# useradd speed
    [[email protected] ~]# 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.
    [[email protected] ~]# useradd abcde
    [[email protected] ~]# echo “password” | passwd –stdin abcde
    Changing password for user abcde.
    passwd: all authentication tokens updated successfully.

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

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

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

  5. 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 try_first_pass retry=3
    # password sufficient md5 shadow nullok try_first_pass use_authtok
    # password required

    Add this line

    password sufficient /lib/security/$ISA/ 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.

Leave a Comment