diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-11-02 17:13:37 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-11-02 17:17:23 -0800 |
commit | 6ddbdaeb4557c04e6ad5c86f7ced922685634851 (patch) | |
tree | 0cc2ce63c28933c3178b43f211cc6554c1381c7d | |
parent | 21a8c369143564e71bf33a760082499cbf45f8dd (diff) | |
download | vyatta-cfg-system-6ddbdaeb4557c04e6ad5c86f7ced922685634851.tar.gz vyatta-cfg-system-6ddbdaeb4557c04e6ad5c86f7ced922685634851.zip |
Reset PAM configuration on boot
Bug 5084
Need to remove radius (and any other) PAM customizations on reboot.
-rwxr-xr-x | scripts/rl-system.init | 6 |
1 files changed, 6 insertions, 0 deletions
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 |