Results 1 to 6 of 6
  1. #1

    can't add new users :(

    Hi,

    Does anyone know what would cause this to happen? Everytime i try to add a user to the system through the adduser command?

    boxen:/home# adduser dasani
    adduser: unable to lock password file
    boxen:/home#

    boxen:/home# useradd dasani
    useradd: unable to lock password file
    boxen:/home#

    boxen:/home# ls -al -h --color /etc/pass*
    -rw-r--r-- 1 root root 20k Sep 30 15:38 /etc/passwd
    -rw------- 1 root root 20k Sep 30 00:17 /etc/passwd-
    -rw-r--r-- 1 root root 865 Apr 12 2002 /etc/passwd.OLD
    boxen:/home# ls -al -h --color /etc/shad*
    -r-------- 1 root root 17k Sep 30 15:38 /etc/shadow
    -rw------- 1 root root 16k Sep 30 00:17 /etc/shadow-
    boxen:/home# ls -al -h --color /etc/group*
    -rw-r--r-- 1 root root 4.6k Sep 30 15:38 /etc/group
    -rw------- 1 root root 4.6k Sep 24 00:34 /etc/group-
    boxen:/home#

    Does anyone have any ideas? i need to be able to add some new users pretty soon.

  2. #2
    Login as root.
    ••• Like us on Facebook to qualify for discounts! •••
    ••• http://www.sprintserve.net •••
    ••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
    ••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

  3. #3
    Join Date
    Dec 2001
    Location
    NYC, NY
    Posts
    799
    *sigh* he is root hence the #

    its a lock file /etc/.pwd.lck

    Never vi the passwd or shadow file

  4. #4
    yep, thanks a lot.

  5. #5
    Join Date
    Sep 2003
    Posts
    79
    Use "vipw" to edit by hand...

  6. #6
    Join Date
    Aug 2002
    Posts
    35
    Eh? Use pico.. it's a program a lot like Windows Notepad... without the screwy interface..... AND the resource-killing tendencies (Massive CPU drain.) from when the process hangs.

Posting Permissions

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