From 0268c1e894eaad329412aac253c11949ae690788 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Thu, 16 Oct 2014 22:25:35 +0100 Subject: 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 --- scripts/standalone_root_pw_reset | 4 ++++ 1 file changed, 4 insertions(+) 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..." -- cgit v1.2.3