From 6ddbdaeb4557c04e6ad5c86f7ced922685634851 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 2 Nov 2009 17:13:37 -0800 Subject: Reset PAM configuration on boot Bug 5084 Need to remove radius (and any other) PAM customizations on reboot. --- scripts/rl-system.init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/rl-system.init') diff --git a/scripts/rl-system.init b/scripts/rl-system.init index 3ca02ed2..2cca5d98 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -169,6 +169,11 @@ setup_ntp_config_file () { log_failure_msg "NTP template config file doesn\'t exist" fi } + +# restore PAM back to virgin state (no radius other services) +pam_reset () { + DEBIAN_FRONTEND=noninteractive pam-auth-update unix +} start () { udev_rescan @@ -182,6 +187,7 @@ start () { sysctl -q -e -p /opt/vyatta/etc/vyatta-sysctl.conf || log_failure_msg "can\'t configure kernel settings" set_ipv6_params + pam_reset update_version_info ## Clear out apt config file--it will be filled in by rtrmgr -- cgit v1.2.3