diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2014-10-16 22:25:35 +0100 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2014-10-16 22:25:35 +0100 |
commit | 0268c1e894eaad329412aac253c11949ae690788 (patch) | |
tree | 6a655a3c359e472a4ad718bd2ee09366ca8a5266 | |
parent | c260e6a6566a7a2ae39242716ed90eba466143ec (diff) | |
download | vyatta-cfg-system-0268c1e894eaad329412aac253c11949ae690788.tar.gz vyatta-cfg-system-0268c1e894eaad329412aac253c11949ae690788.zip |
vyatta-cfg-system: allow password reset for users other than vyos
The password reset option only allows resetting the password for the
default admin (vyos) user. This now allows the user to be specified
for the password reset, defaulting to the 'vyos' user with a password
of 'vyos'.
Bug #342 http://bugzilla.vyos.net/show_bug.cgi?id=342
-rwxr-xr-x | scripts/standalone_root_pw_reset | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset index d3b9ed2e..1a73de71 100755 --- a/scripts/standalone_root_pw_reset +++ b/scripts/standalone_root_pw_reset @@ -108,6 +108,10 @@ if [ "$response" != "y" -a "$response" != "Y" ]; then /sbin/reboot -f fi +echo -en "Which admin account do you want to reset? [$ADMIN] " +read admin_user +ADMIN=${admin_user:-$ADMIN} + echo "Starting process to reset the admin password..." echo "Re-mounting root filesystem read/write..." |