Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Run "lsof" and see if any other program has your passwd file open.

  3. #3
    Just 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,

  4. #4
    Just Joined!
    Join Date
    Mar 2003
    Posts
    17
    oops forgot, I did log in as root and tried the command,

  5. #5
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    You probably don't have it installed then. What distro do you have?

  6. #6
    Just Joined!
    Join Date
    Mar 2003
    Posts
    17
    Red Hat is 7.0 Guiness.

  7. #7
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Code:
    rpm -Uvh ftp://rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/lsof-4.63-2.i386.rpm
    that will install lsof

  8. #8
    Linux 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.

  9. #9
    Just 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

  10. #10
    Linux 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

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •