11-05-2001
I'm not sure exactly what method useradd uses to lock the password file, but I would try the following:
- Run a 'ps ax' to look for any hung useradd processes or any other process that may be modifying the password file. Close or kill them.
- Run an 'ls -l /etc/passwd*' and look for a potential lock file. It may be called passwd~, passwd.lock, etc. Remove it (or move it to /tmp as a safety measure)
- Run an 'ls -la /var/lock' to look for any lock files. Again, remove or move them.
- If you are still unable to run your command, try 'strace useradd <arguments>'
This should show you the name of the lock file being accessed. You can then remove it.
removed html tags --oombera
10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin.
Name for the user Tivoli
Thanks & Regards
Babu (7 Replies)
Discussion started by: lbreddy
7 Replies
2. AIX
Dear All,
I'd like to know is there any way to determine when a user id created in AIX?
Thanks,
Istvan (2 Replies)
Discussion started by: istvan.banai
2 Replies
3. Solaris
i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting. (4 Replies)
Discussion started by: raynu.sharma
4 Replies
4. Solaris
I created a user in my Solaris box , but after creating am not able to login with that user name . Can anyone tell me that i have to change any files for enabling the login. (2 Replies)
Discussion started by: rogerben
2 Replies
5. Red Hat
Hi
Thanks in advance.
How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies
6. Solaris
Hello guys,
i have a problem where i cant create a user and here some problem that i encounter.
1. /etc/passwd seems locked.
2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created.
# useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies
7. AIX
hi seniors
i want to create the users like when the user try to login it should not
should not promt for passwd is it possible to create users like this
please help me (6 Replies)
Discussion started by: senmak
6 Replies
8. AIX
Hi,
I am getting tired in creating several users in a day. Can anyone have a script to create several users in the same server, as well as, to create one user in several servers.
where i have to put script and how to run the script.
Waiting for your reply.
Thanks in advance (5 Replies)
Discussion started by: udtyuvaraj
5 Replies
9. Solaris
Hi can anyone help me how to create a NIS user by editing the files like Passwd,group, Netgroup,auto.home and Aliases using the "enis" utility?
Please do the needful................................ (4 Replies)
Discussion started by: Revathi@1
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I want to create a user using useradd -m test. How can I restric the user not to change his directory from his home dir?
Thanks,
Suresh (2 Replies)
Discussion started by: suresh3566
2 Replies