[Bug 8586] New: adduser without -s (shell) creates invalid /etc/passwd entry
bugzilla at busybox.net
bugzilla at busybox.net
Tue Jan 5 13:40:17 UTC 2016
https://bugs.busybox.net/show_bug.cgi?id=8586
Bug ID: 8586
Summary: adduser without -s (shell) creates invalid /etc/passwd
entry
Product: Busybox
Version: 1.22.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: Jonathon.Reinhart at gmail.com
CC: busybox-cvs at busybox.net
Running busybox from the following docker image:
$ docker images
docker.io/busybox latest 8c2e06607696 8
months ago 2.43 MB
$ docker run --rm -it busybox
/ # adduser -D foouser
/ # cat /etc/passwd
root:x:0:0:root:/root:/bin/sh
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
mail:x:8:8:mail:/var/spool/mail:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
operator:x:37:37:Operator:/var:/bin/sh
haldaemon:x:68:68:hald:/:/bin/sh
dbus:x:81:81:dbus:/var/run/dbus:/bin/sh
ftp:x:83:83:ftp:/home/ftp:/bin/sh
nobody:x:99:99:nobody:/home:/bin/sh
sshd:x:103:99:Operator:/var:/bin/sh
default:x:1000:1000:Default non-root user:/home/default:/bin/sh
foouser:x:1001:1001:Linux User,,,:/home/foouser:fault non-root user
/ # busybox
BusyBox v1.22.1 (2014-05-22 23:22:11 UTC) multi-call binary.
...
You can see that foouser has a bogus shell.
This appears to be fixed in v1.24.1, but I can find no indication at
https://www.busybox.net/news.html, or in Git as to what was broken.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list