Results 1 to 10 of 12
I have a red hat linux computer that has been up and running for almost 1 year. Last week it would not let me add any new users or change ...
- 03-25-2003 #1Just Joined!
- Join Date
- Mar 2003
- Posts
- 17
cannot add users or change passwords
I have a red hat linux computer that has been up and running for almost 1 year. Last week it would not let me add any new users or change a password for an established user.
I am not sure why this machine would start doing this.
When I try to add a user it tells me give me an manipulation error.
When I try to add a new user, the error says that it cannot lock the password file.
I usually use vipw to check the user file but I cannot use this command any more on this machine. Since I have not seen this error before, I am stumped. I don't want to start over with this machine because of the user accounts that already running.
Any ideas or help would be appreciated.
- 03-25-2003 #2Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Run "lsof" and see if any other program has your passwd file open.
- 03-25-2003 #3Just Joined!
- Join Date
- Mar 2003
- Posts
- 17
Can I run this option from a remote host? I tried it and I received a message that the command is unknown. I am not a work now and have logged in from my home computer,
- 03-25-2003 #4Just Joined!
- Join Date
- Mar 2003
- Posts
- 17
oops forgot, I did log in as root and tried the command,
- 03-25-2003 #5Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
You probably don't have it installed then. What distro do you have?
- 03-25-2003 #6Just Joined!
- Join Date
- Mar 2003
- Posts
- 17
Red Hat is 7.0 Guiness.
- 03-25-2003 #7Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
that will install lsofCode:rpm -Uvh ftp://rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/lsof-4.63-2.i386.rpm
- 03-25-2003 #8Linux Enthusiast
- Join Date
- Jun 2002
- Location
- San Antonio
- Posts
- 621
check to see that your disk isn't full. That would be the most probable problem. `df -h` will show you how full it is (in real world numbers like megs and gigs). Also, try `df -ih` to see how many inodes are taken up, the disk could be partially full, but have a lot of small files (possibly from a runaway process) that are taking up all the inodes.
I respectfully decline the invitation to join your delusion.
- 03-26-2003 #9Just Joined!
- Join Date
- Mar 2003
- Posts
- 17
This is what I see when this command is ran.
I would say that this machine has enough room left.
# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/hda8 251M 78M 160M 33% /
/dev/hda1 23M 9.8M 11M 46% /boot
/dev/hda6 8.6G 749M 7.3G 9% /home
/dev/hda5 8.6G 1.9G 6.2G 23% /usr
/dev/hda7 251M 43M 195M 18% /var
- 03-26-2003 #10Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Generally when you can't get a lock on the file is because it is open by another proc. I still suggest using lsof to see if some proc has it opened that you don't know about. Or if you have to, reboot the box but I would rather fix it without rebooting. This isn't windows


Reply With Quote
