[Pkg-shadow-devel] Bug#293492: marked as done ([ALEXANDER] useradd: by default creates user with unspecified shell, this causes problems)

Debian Bug Tracking System owner at bugs.debian.org
Mon Sep 26 17:33:11 UTC 2005


Your message dated Mon, 26 Sep 2005 10:17:11 -0700
with message-id <E1EJwbH-0004Bf-00 at spohr.debian.org>
and subject line Bug#293492: fixed in shadow 1:4.0.12-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Feb 2005 20:54:38 +0000
>From mroos at linux.ee Thu Feb 03 12:54:38 2005
Return-path: <mroos at linux.ee>
Received: from math.ut.ee [193.40.5.125] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cwnzp-0004Fi-00; Thu, 03 Feb 2005 12:54:37 -0800
Received: from math.ut.ee (localhost [IPv6:::1])
	by math.ut.ee (8.12.8+Sun/8.12.8/math-1.2) with ESMTP id j13KsZbE006036
	for <submit at bugs.debian.org>; Thu, 3 Feb 2005 22:54:35 +0200 (EET)
Received: from localhost (mroos at localhost)
	by math.ut.ee (8.12.8+Sun/8.12.2/Submit) with ESMTP id j13KsYms006033
	for <submit at bugs.debian.org>; Thu, 3 Feb 2005 22:54:35 +0200 (EET)
X-Authentication-Warning: math.ut.ee: mroos owned process doing -bs
Date: Thu, 3 Feb 2005 22:54:34 +0200 (EET)
From: Meelis Roos <mroos at linux.ee>
Sender: mroos at math.ut.ee
To: submit at bugs.debian.org
Subject: useradd: by default creates user with unspecified shell, this causes
 problems
Message-ID: <Pine.SOC.4.61.0502032253290.5744 at math.ut.ee>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

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 user at host
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

---------------------------------------
Received: (at 293492-close) by bugs.debian.org; 26 Sep 2005 17:18:09 +0000
>From katie at spohr.debian.org Mon Sep 26 10:18:09 2005
Return-path: <katie at spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1EJwbH-0004Bf-00; Mon, 26 Sep 2005 10:17:11 -0700
From: Christian Perrier <bubulle at debian.org>
To: 293492-close at bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#293492: fixed in shadow 1:4.0.12-2
Message-Id: <E1EJwbH-0004Bf-00 at spohr.debian.org>
Sender: Archive Administrator <katie at spohr.debian.org>
Date: Mon, 26 Sep 2005 10:17:11 -0700
Delivered-To: 293492-close at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: shadow
Source-Version: 1:4.0.12-2

We believe that the bug you reported is fixed in the latest version of
shadow, which is due to be installed in the Debian FTP archive:

login_4.0.12-2_i386.deb
  to pool/main/s/shadow/login_4.0.12-2_i386.deb
passwd_4.0.12-2_i386.deb
  to pool/main/s/shadow/passwd_4.0.12-2_i386.deb
shadow_4.0.12-2.diff.gz
  to pool/main/s/shadow/shadow_4.0.12-2.diff.gz
shadow_4.0.12-2.dsc
  to pool/main/s/shadow/shadow_4.0.12-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 293492 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Perrier <bubulle at debian.org> (supplier of updated shadow package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 22 Sep 2005 07:34:29 +0200
Source: shadow
Binary: login passwd
Architecture: source i386
Version: 1:4.0.12-2
Distribution: unstable
Urgency: low
Maintainer: Shadow package maintainers <pkg-shadow-devel at lists.alioth.debian.org>
Changed-By: Christian Perrier <bubulle at debian.org>
Description: 
 login      - system login tools
 passwd     - change and administer password and group data
Closes: 293492
Changes: 
 shadow (1:4.0.12-2) unstable; urgency=low
 .
   * The "Boulette d'Avesnes" release
   * Debian packaging fixes:
     - debian/useradd.default:
       File added and installed as /etc/default/useradd to provide
       "safe" defaults to useradd and, for instance, have it create users
       with a shell. Closes: #293492
Files: 
 f91e0e210c127ce00595cfc3c80766f0 867 base required shadow_4.0.12-2.dsc
 9a73f447a37f1c6ad09357a37408a46f 680776 base required shadow_4.0.12-2.diff.gz
 c73b3675de81c810e166226dcb62e48c 524820 base required passwd_4.0.12-2_i386.deb
 b11b71699b135a7339c9d387cbe58418 489332 base required login_4.0.12-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDMlVU1OXtrMAUPS0RAjePAJ402DZ6GwWlX1O9gN+dUfkP6CTzlgCgml/d
UEHmHG+CoxHMP/jJzhy6Fnk=
=E2Ik
-----END PGP SIGNATURE-----




More information about the Pkg-shadow-devel mailing list