Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Master of Reality on 26 April 2002, 03:47

Title: adding users
Post by: Master of Reality on 26 April 2002, 03:47
i added a user to my system and used the "passwd" command to make it without a password.
I cant log into my new user account, it says bad login.
I set a password for it and used it and it still didnt work.
I thought.. "hmmm, maybe it didnt really make the user", i checked and the user i made was there.
Anyone know how to fix this?
Title: adding users
Post by: voidmain on 26 April 2002, 06:11
Are you sure you set the "user"s password or "root"s password? If you are root and go to set the user's password but forget to include the username as a parameter to the "passwd" command you will be changing root's password and not the user's.

# passwd myuser

I actually did this once and realized I couldn't log in as root any more. Took me a few minutes to realize what I had done.
Title: adding users
Post by: Master of Reality on 26 April 2002, 06:20
yes.. i did:
# passwd -l [username]

but i dont need the account i created anymore, so i deleted it  (http://smile.gif)

[ April 25, 2002: Message edited by: Master of Reality ]