Your message dated Mon, 18 Nov 2019 20:52:21 +0100
with message-id
<cak0odpz2p-bxboasb8k+59u7klj4kcjnyenhp6rxab5jvhm...@mail.gmail.com>
and subject line Re: Bug#892098: [Pkg-shadow-devel] Bug#892098: passwd: useradd
in Jessie creates user with empty string as shell)
has caused the Debian Bug report #892098,
regarding passwd: useradd in Jessie creates user with empty string as shell
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
892098: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892098
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: passwd
Version: 1:4.4-4.1
Severity: normal
Dear maintainers,
useradd in Jessie creates user with empty string as shell:
% useradd -m emptyshell
% getent passwd | grep emptyshell
emptyshell:x:4001:4002::/home/emptyshell:
% useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
useradd from passwd 1:4.5-1 in Debian Sid works correctly.
Thanks,
Martin
-- System Information:
Debian Release: 9.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.9.0-6-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages passwd depends on:
ii libaudit1 1:2.6.7-2
ii libc6 2.24-11+deb9u1
ii libpam-modules 1.1.8-3.6
ii libpam0g 1.1.8-3.6
ii libselinux1 2.6-3+b3
ii libsemanage1 2.6-2
passwd recommends no packages.
passwd suggests no packages.
-- Configuration Files:
/etc/default/useradd [Errno 13] Keine Berechtigung: '/etc/default/useradd'
-- debconf information:
passwd/username-bad:
passwd/password-empty:
passwd/username:
passwd/shadow: true
passwd/title:
passwd/user-fullname:
* passwd/make-user: false
passwd/user-uid:
passwd/password-mismatch:
passwd/md5: false
--- End Message ---
--- Begin Message ---
Control: fixed -1 1:4.5-1.1
Hi Martin,
Martin Steigerwald <[email protected]> ezt írta (időpont:
2018. márc. 26., H, 10:12):
>
> reopen 892098
> thanks
>
> Hello Bálint,
>
> Debian Bug Tracking System - 23.03.18, 14:09:
> > > Package: passwd
> > > Version: 1:4.4-4.1
> > > Severity: normal
> […]
> > > useradd in Jessie creates user with empty string as shell:
> > >
> > > % useradd -m emptyshell
> > > % getent passwd | grep emptyshell
> > > emptyshell:x:4001:4002::/home/emptyshell:
> > >
> > > % useradd -D
> > > GROUP=100
> > > HOME=/home
> > > INACTIVE=-1
> > > EXPIRE=
> > > SHELL=/bin/bash
> > > SKEL=/etc/skel
> > > CREATE_MAIL_SPOOL=no
> > >
> > > useradd from passwd 1:4.5-1 in Debian Sid works correctly.
> >
> > Just like the one in Jessie.
>
> Nope. At least not on my Debian Stretch systems including templates with
> minimal installation and customization.
>
> > > passwd suggests no packages.
> > >
> > > -- Configuration Files:
> > > /etc/default/useradd [Errno 13] Keine Berechtigung: '/etc/default/useradd'
> >
> > /etc/default/useradd is missing, it would set SHELL for adduser.
>
> No, its not. "Keine Berechtigung" means "permission denied". Which is due to
> me running reportbug as a user, not as root and /etc/default/useradd being
> restricted to root:
>
> root@debiantest:~# LANG=C ls -l /etc/default/useradd
> -rw------- 1 root root 1195 Mar 26 10:00 /etc/default/useradd
>
>
> I just tried again on a minimal template:
>
> root@debiantest:~# useradd -m test
> root@debiantest:~# getent passwd | grep test
> test:x:1001:1001::/home/test:
>
> root@debiantest:~# grep -v "^#" /etc/default/useradd
> SHELL=/bin/sh
>
> From your other mail:
> > I mean for useradd, but using adduser is recommended anyway.
>
> Sure is, still, useradd is supposed to work as well and also its the
> distribution agnostic way to add users.
Thanks, I could reproduce the issue in stretch in LXC but not in buster in LXC:
root@stretch:~# useradd -m test
root@stretch:~# getent passwd | grep test
test:x:1001:1001::/home/test:
root@buster:~# useradd -m test
root@buster:~# getent passwd | grep test
test:x:1000:1000::/home/test:/bin/sh
Cheers,
Balint
--- End Message ---
_______________________________________________
Pkg-shadow-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-shadow-devel