![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Normal User Unable to Login Through AIX CDE | ranadeep | AIX | 1 | 03-07-2008 03:05 AM |
| lock user to directory in ftp | eliraza6 | SUN Solaris | 3 | 10-25-2007 02:56 AM |
| groupadd: unable to lock group file | Daven81 | Linux | 1 | 11-14-2005 07:28 AM |
| Other than root user .Normal user is unable to create files | mallesh | UNIX for Advanced & Expert Users | 1 | 06-22-2005 09:18 AM |
| Lock an User temperarily | reddyb | UNIX for Dummies Questions & Answers | 5 | 08-27-2001 06:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unable to Lock User
Hi,
I am trying to lock a user by executing "passwd -l xxxx" but the system is returning following error: Locking password for user xxxx. passwd: Error (password not set?) I do see the passwd for this user encrypted in shadow file thou! Anyone have any ideas why am getting this error? Help is appreciated greatly!! |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
To have some more information would be helpful.
Code:
ls -ld /etc/passwd /etc/shadow grep $user /etc/passwd /etc/shadow |
|
#3
|
|||
|
|||
|
Manually hacked the shadow file
fabtagon....thanks for your quick reply. I had to manually hack the shadow file to lock the user.
The user exists in passwd and shadwo file but am not sure why it gave me an error on passwd -l xxxx. It was kind of urgent but I took care of it the hard way. I still wonder why my command failed. I appreciate your help and quick response. |
|
#4
|
|||
|
|||
|
whats the output of passwd -sa
did u try: passwd xxxx ->chg password then followed by passwd -l xxx |
|
#5
|
|||
|
|||
|
Another option would be to remove the user from the shadow file and run pwconv
|
|
#6
|
|||
|
|||
|
I used traditional method i.e put * alongwith password in shadow file. It took care of my problem. I just tried littl harder not smarter this time. I don't know why "passwd -l xxx" didn't work. May be it has something to do with NIS! I don't know
But I appreciate you everyone who have came to my rescue with vaulable ideas. As always you guys/gals ROCK!! |
|||
| Google The UNIX and Linux Forums |