vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello experts, I am facing an issue where i cannot create a password for the account I just created. I used the useradd command to create a user, but weh I used passwd command the os asked for new passwd and retype passwd. Once I did enter the passwd it says permission denied. I tried by changing the chmod on the shadow file to 777, but that did not help either. Just for the side note we are not using LDAP or NIS. Please help asap. Thanks |
| |||
| On Tue, 10 Jul 2007, learner wrote: > Hello experts, > I am facing an issue where i cannot create a password for the account > I just created. > I used the useradd command to create a user, but weh I used passwd > command the os asked for new passwd and retype passwd. Once I did > enter the passwd it says permission denied. I tried by changing the > chmod on the shadow file to 777, but that did not help either. Just With all respect, that was a VERY silly thing to do! Change the perms back to 0400 now (read-only for root): -r-------- 1 root sys 456 Jun 2 16:50 /etc/shadow To answer your question: when changing another (local) user's password as root, you don't get asked for the old password. Are you trying to do this as root, or some other user? HTH, -- Rich Teer, SCSA, SCNA, SCSECA, OGB member CEO, My Online Home Inventory Voice: +1 (250) 979-1638 URLs: http://www.rite-group.com/rich http://www.myonlinehomeinventory.com |
| ||||
| On Jul 10, 8:49 pm, learner <Zabal...@gmail.com> wrote: > Hello experts, > I am facing an issue where i cannot create a password for the account > I just created. > I used the useradd command to create a user, but weh I used passwd > command the os asked for new passwd and retype passwd. Once I did > enter the passwd it says permission denied. I tried by changing the > chmod on the shadow file to 777, but that did not help either. Just > for the side note we are not using LDAP or NIS. > Please help asap. > Thanks What command did you exactly type? Could you send the output along with the commands you used? I am sure you used: root# passwd <new_user> (enter) Cheers Khurram |
| Thread Tools | |
| Display Modes | |
|
|