Could this be a sign of useradd ignoring everything in
/etc/default/useradd? I've stumbled upon a problem when changing the
default HOME base directory. Example:

# useradd -D
GROUP=100
HOME=/tmp
INACTIVE=-1
EXPIRE=
SHELL=/bin/sh
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
# useradd -m testuser14
# grep testuser14 /etc/passwd
testuser14:x:5012:5012::/home/testuser14:

I think useradd is not only ignoring the SHELL variable (though I didn't
change it in this example), but also the rest of variables that appear
in /etc/default/useradd.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321854

Title:
  useradd doesn't add the default shell to /etc/passwd entry

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1321854/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to