Unable to adduser or deluser


Results 1 to 4 of 4

Thread: Unable to adduser or deluser

  1. #1
    Join Date
    Jul 2002
    Location
    Router 81.231.39.34
    Posts
    260

    Unable to adduser or deluser

    I am unable to add a user or even delete a user. When I use the adduser command it comes back with the error "useradd: cannot open shadow password file." Please help! This system has been taken offline, so there are no issues with security. I have been trying to blank the passwords so that I can access the users email accounts.
    Linux User #283077
    Linux Counter

    Windows error fault 9872x1297 in sector 9812.
    Press Ctrl + Alt + Del, Or install linux!

  2. #2
    Join Date
    Apr 2003
    Location
    Buenos Aires, Argentina
    Posts
    4,219
    Hmm.. you should check the permissions of the file /etc/shadow, it should be like this:
    Code:
    root@c0ma:/usr/src# ls -l /etc/shadow
    -rw-r----- 1 root shadow 682 2006-07-03 08:05 /etc/shadow
    chmod 0640 /etc/shadow

    If that doesn't work because you lost the shadow file or something you can try using the "shadowconfig off" command to disable the password shadowing and then enable it back with "shadowconfig on".
    djserz.com.ar
    "All the drugs in this world won't save you from yourself..."

  3. #3
    Join Date
    Apr 2003
    Location
    Buenos Aires, Argentina
    Posts
    4,219
    Hmm.. you should check the permissions of the file /etc/shadow, it should be like this:
    Code:
    root@c0ma:/usr/src# ls -l /etc/shadow
    -rw-r----- 1 root shadow 682 2006-07-03 08:05 /etc/shadow
    chmod 0640 /etc/shadow

    If that doesn't work because you lost the shadow file or something you can try using the "shadowconfig off" command to disable the password shadowing and then enable it back with "shadowconfig on".
    djserz.com.ar
    "All the drugs in this world won't save you from yourself..."

  4. #4
    Join Date
    Jul 2002
    Location
    Router 81.231.39.34
    Posts
    260
    I did the ls command on the shadow file and it showed this:
    Code:
    -r--------   1 root     root    2608  Aug 7 16:40  /etc/shadow
    Then I tried to chmod it, but it came back:
    Code:
    bash: /bin/chmod: Text file busy
    After that I tried to do the shadowconfig off command, but that didn't work at all.
    Linux User #283077
    Linux Counter

    Windows error fault 9872x1297 in sector 9812.
    Press Ctrl + Alt + Del, Or install linux!

Posting Permissions

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