Package: ppp
Version: 2.4.6-3.1
Severity: normal
postinst modifies the permissions of 2 configuration files, pap-secrets and
chap-secrets:
# install /etc/ppp/pap-secrets and /etc/ppp/chap-secrets from templates,
# if necessary
for file in pap-secrets chap-secrets; do
if [ -f /etc/ppp/$file ]; then
TAG=$(head --lines=1 /etc/ppp/$file)
if [ "$TAG" = "#GENERATED-BY-DEBIAN-INSTALLER#" ]; then
(sed -e "s/-HOSTNAME-/$HOST/g" /usr/share/ppp/$file; \
cat /etc/ppp/$file) > /etc/ppp/$file.tmp
mv /etc/ppp/$file.tmp /etc/ppp/$file
fi
else
sed -e "s/-HOSTNAME-/$HOST/g" < /usr/share/ppp/$file > /etc/ppp/$file
fi
chmod 600 /etc/ppp/$file
done
The permission change at the last line is always performed, even on upgrade.
This causes /etc/ppp/chap-secrets to go back to 0600 even if the administrator
has set different permissions.
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ppp depends on:
ii init-system-helpers 1.22
ii libc6 2.19-18+deb8u1
ii libpam-modules 1.1.8-3.1
ii libpam-runtime 1.1.8-3.1
ii libpam0g 1.1.8-3.1
ii libpcap0.8 1.6.2-2
ii procps 2:3.3.9-9
ppp recommends no packages.
ppp suggests no packages.
-- no debconf information