System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

problems in creating new users

 
SOLVED
Go to solution
Highlighted
Regular Advisor

problems in creating new users

I am trying to create new users using useradd command but having the following error:

useradd cannot lock shadow password file

We are using RED HAt Entrerprise 4.
3 REPLIES 3
Highlighted
Exalted Contributor
Solution

Re: problems in creating new users

Shalom,

There may be a vi or other hung hession on the file.

Best bet is to look at the process list, kill the process and try again.

It could be a hung useradd command. Could also be no space on the root file system.

A reboot will also fix the problem. Clumsily.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Honored Contributor

Re: problems in creating new users

Check if you have the /etc/passwd.lock file. Verify it's contents.

How many users (lines) do you have in the /etc/passwd file?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Highlighted
Valued Contributor

Re: problems in creating new users

Hi,
Using fuser command you can find any attached process to your shadow file.
you can refer to the man page for fuser to get an idea about how can this fuser command can help you to solve your problem.

Good Luck...!