Package: passwd
Version: 1:4.0.3-30.8
Severity: normal
File: /usr/sbin/useradd


Short description: useradd -u 600 -c "Test" -m test does not specify shell in /etc/passwd. This creates different problems later.

Long description:

I debugged for several evenings why vim complains on startup about no
shell and konsole starts shell with too simple prompt (sh-2.05$). It
appears that recently useradd has not been adding default shell anymore
on new user creation. This creates confusion and is against the
principle of least surprise - applications and users do expect some
shell specification.

IMHO it should add at least a /bin/sh to not confuse applications like
bash (empty SHELL) and vim (epmty SHELL gives error message on each file
open).

Better yes, it should add /bin/bash as default if no shell is specified.
Not because everyone should use bash or because it would be somehow
better than any other $SHELL but because Debian has a sensible default
configuration for bash that is userfriendly (things like [EMAIL PROTECTED]
prompt etc).

If any other shell is wanted, it's specified anyway using useradd -s or
useradd -D -s and I can now specify useradd -D -s /bin/bash to cure my
problem.  This is not the problem, the problem is the selection of
sensible default behaviour out of the box. And IMHO even a low-level
program like useradd should still follow it.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc2
Locale: LANG=et_EE.ISO-8859-15, LC_CTYPE=et_EE.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages passwd depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libpam-modules              0.76-22      Pluggable Authentication Modules f
ii  libpam0g                    0.76-22      Pluggable Authentication Modules l
ii  login                       1:4.0.3-30.8 System login tools

-- debconf information:
  passwd/password-mismatch:
  passwd/username:
  passwd/password-empty:
  passwd/md5: false
  passwd/shadow: true
  passwd/username-bad:
  passwd/user-fullname:
  passwd/make-user: true


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to