add empty "extrausers" equivalents for subuid and subgid files, else adduser falls over in interactive mode when trying to write to them

ubuntu/yakkety
Oliver Grawert 9 years ago
parent b32f8c976d
commit 6813f1c965

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.343) UNRELEASED; urgency=medium
* add empty "extrausers" equivalents for subuid and subgid files, else
adduser falls over in interactive mode when trying to write to them.
-- Oliver Grawert <ogra@ubuntu.com> Wed, 09 Sep 2015 13:28:10 +0200
livecd-rootfs (2.342) wily; urgency=medium
* ubuntu-touch, ubuntu-desktop-next: drop systemd-journal-remote from group

@ -30,6 +30,8 @@ sed -i "/^$USER/d" /etc/group
sed -i "/^$USER/d" /etc/passwd
sed -i "/^$USER/d" /etc/shadow
sed -i "/^$USER/d" /etc/gshadow
touch /var/lib/extrausers/subuid
touch /var/lib/extrausers/subgid
# needs to run *after* the user was moved out to /var/lib/extrausers
echo "I: set user $USER password to $USER"

@ -35,6 +35,8 @@ sed -i "/^$USER/d" /etc/group
sed -i "/^$USER/d" /etc/passwd
sed -i "/^$USER/d" /etc/shadow
sed -i "/^$USER/d" /etc/gshadow
touch /var/lib/extrausers/subuid
touch /var/lib/extrausers/subgid
# needs to run *after* the user was moved out to /var/lib/extrausers
echo "I: set user $USER password to $USER"

@ -32,6 +32,8 @@ sed -i "/^$USER/d" /etc/group
sed -i "/^$USER/d" /etc/passwd
sed -i "/^$USER/d" /etc/shadow
sed -i "/^$USER/d" /etc/gshadow
touch /var/lib/extrausers/subuid
touch /var/lib/extrausers/subgid
# Prevent the system user from being presented in the greeter by bumping MIN_UID
sed -i 's/^\(UID_MIN\s\+\).*/\11002/g' /etc/login.defs

Loading…
Cancel
Save