Hi Friends,
How can I add new user in my RHL 7.1 box. I tried using useradd <username> -p <password>
It added the user. But when I tried to enter with this username & password the login fails. Actually if I try with above loging name & passwd it fails but if I try with above login name & roots passwd then it logs in. That means password is not setting properly.
Where I'm going wrong? Also tell me how to Remove any user form Linux ?
Thanks & Regards, SAMEER :)
~~~~~ My Messanger IDs MSN: s2sameer Yahoo!: s9sameer RediffBol: s2sameer Indiatimes: s2sameer AIM: s2sameer ICQ : 126769285
Sometime Today, Sameer Shinde assembled some asciibets to say:
How can I add new user in my RHL 7.1 box. I tried using
useradd <username> -p
<password>
Don't set the password using useradd. Instead, after you add the user, type passwd user and then enter the password for the user. This works.
Have you read the man page for useradd? If you have, then you will notice in the See Also section that there is a command called userdel.
Philip