* debian/shadowconfig.sh: Do not run shadowoff() and shadowon() in subshell.

This also remove a dependency on bash (even though /bin/sh would have been
    sufficient). Thanks to Luk for spotting this.
This commit is contained in:
nekral-guest
2009-07-23 20:58:02 +00:00
parent 1a58cb2346
commit 96866ff296
2 changed files with 10 additions and 13 deletions

5
debian/changelog vendored
View File

@@ -17,8 +17,11 @@ shadow (1:4.1.4.2-1) unstable; urgency=low
document the restriction on groupnames, not usernames.
* debian/login.pam: pam_securetty included as a required module instead of
requisite to avoid leak of user name information. Closes: #531341
* debian/shadowconfig.sh: Do not run shadowoff() and shadowon() in subshell.
This also remove a dependency on bash (even though /bin/sh would have been
sufficient). Thanks to Luk for spotting this.
-- Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> Thu, 23 Jul 2009 22:55:12 +0200
-- Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> Thu, 23 Jul 2009 22:56:42 +0200
shadow (1:4.1.4.1-1) unstable; urgency=low

View File

@@ -4,32 +4,26 @@
set -e
shadowon () {
bash<<- EOF
set -e
pwck -q
grpck -p
pwconv
grpconv
cd /etc
chown root:root passwd group
chmod 644 passwd group
chown root:shadow shadow gshadow
chmod 640 shadow gshadow
EOF
chown root:root /etc/passwd /etc/group
chmod 644 /etc/passwd /etc/group
chown root:shadow /etc/shadow /etc/gshadow
chmod 640 /etc/shadow /etc/gshadow
}
shadowoff () {
bash<<- EOF
set -e
pwck -q
grpck -p
pwunconv
grpunconv
cd /etc
# sometimes the passwd perms get munged
chown root:root passwd group
chmod 644 passwd group
EOF
chown root:root /etc/passwd /etc/group
chmod 644 /etc/passwd /etc/group
}
case "$1" in