Control: fixed -1 1:4.5-1.1 Hi Martin,
Martin Steigerwald <martin.steigerw...@proact.de> 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