login.postinst: install a default /etc/subuid and /etc/subgid

This commit is contained in:
Micah Anderson
2014-02-25 22:54:35 -05:00
parent 7573a1f684
commit 99a8e345da
2 changed files with 14 additions and 0 deletions

1
debian/changelog vendored
View File

@@ -39,6 +39,7 @@ shadow (1:4.2-1) UNRELEASED; urgency=low
* Allow LXC devices (lxc/console, lxc/tty[1234]) in securetty.linux
* Update documentation of UMASK: Explain that USERGROUPS_ENAB will modify
this default for UPGs. (Closes: #583971)
* login.postinst: install a default /etc/subuid and /etc/subgid
-- Christian Perrier <bubulle@debian.org> Sat, 27 Jul 2013 20:07:18 +0200

13
debian/login.postinst vendored
View File

@@ -24,6 +24,19 @@ then
fi
fi
# Create subuid/subgid if missing
if [ ! -e /etc/subuid ]; then
touch /etc/subuid
chown root:root /etc/subuid
chmod 644 /etc/subuid
fi
if [ ! -e /etc/subgid ]; then
touch /etc/subgid
chown root:root /etc/subgid
chmod 644 /etc/subgid
fi
#DEBHELPER#
exit 0