diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-02 19:18:05 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-02 19:18:05 +0200 |
commit | 2e57bf9a4220a1c99cdb87136fad1b83d14cc454 (patch) | |
tree | 936ceb033be8fdcbb82f97a34bec3bad661db2d8 /scripts/standalone_root_pw_reset | |
parent | 73f0546e5f5c8d9bd367771ae0012797114ca340 (diff) | |
parent | 21031c67393d26a814298a8755d4bea43b0834de (diff) | |
download | vyatta-cfg-quagga-2e57bf9a4220a1c99cdb87136fad1b83d14cc454.tar.gz vyatta-cfg-quagga-2e57bf9a4220a1c99cdb87136fad1b83d14cc454.zip |
Fix overlapping edits of standalone_pw_reset
Put in new code to set password, rather than reset it to default
Although resetting passwd to default sounds good from a usuablity point
of view, it is a potential security hole when system is rebooted. Instead,
allow user to choose new passwd.
Diffstat (limited to 'scripts/standalone_root_pw_reset')
-rwxr-xr-x | scripts/standalone_root_pw_reset | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset index eae5754e..f08bf7d6 100755 --- a/scripts/standalone_root_pw_reset +++ b/scripts/standalone_root_pw_reset @@ -14,7 +14,7 @@ # All Rights Reserved. # # Author: Bob Gilligan <gilligan@vyatta.com> -# Description: Standalone script to reset the root passwd to factory default +# Description: Standalone script to set the root passwd to new value # value. Note: This script can ONLY be run as a standalone # init program by grub. # @@ -92,9 +92,7 @@ fi echo "Saving backup copy of config.boot..." cp $CF ${CF}.before_pwrecovery -echo "Reseting the root password..." - -change_password root +echo "Setting the root password..." echo $(date "+%b%e %T") $(hostname) "Root password changed" \ | tee -a /var/log/auth.log >>/var/log/messages |