summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postrm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-18 11:18:48 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-18 14:55:32 -0800
commitebf4b7422e1a58978418e11f13bf7859e7ba6318 (patch)
tree6e9492314fb3341cbb45d63df92dcfbd05a970e3 /debian/vyatta-cfg-system.postrm
parent42144158c9036f4801289905a316de4a2b7a772e (diff)
downloadvyatta-cfg-quagga-ebf4b7422e1a58978418e11f13bf7859e7ba6318.tar.gz
vyatta-cfg-quagga-ebf4b7422e1a58978418e11f13bf7859e7ba6318.zip
Block passwd command for non-root user
The vyatta administrator needs to use Vyatta tools to change account password. Bug 4927
Diffstat (limited to 'debian/vyatta-cfg-system.postrm')
-rw-r--r--debian/vyatta-cfg-system.postrm4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postrm b/debian/vyatta-cfg-system.postrm
index 46ec1aaa..5b22f66b 100644
--- a/debian/vyatta-cfg-system.postrm
+++ b/debian/vyatta-cfg-system.postrm
@@ -3,8 +3,8 @@
if [ "$1" = "purge" ]; then
rm -f /etc/udev/rules.d/*vyatta-net.rules
- sed -i '/### BEGIN VYATTA/,/### END VYATTA/d' /etc/sudoers
-
+ sed -i -e '/### BEGIN VYATTA/,/### END VYATTA/d' /etc/sudoers
+ sed -i -e 'g/^password/d' /etc/pam.d/password
fi
# Local Variables: