From 9edeeb4783a5b672fb18abbe8db8b059d4298717 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Jun 2008 10:23:51 -0700 Subject: translate slash in password If mkpasswd returns password with slash then it needs to be escaped. --- scripts/install-system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/install-system') diff --git a/scripts/install-system b/scripts/install-system index 3b3d406d..12192cb4 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -539,7 +539,7 @@ change_password() { local user=$1 local pwd read pwd - local epwd=$(mkpasswd -H md5 $pwd) + local epwd=$(mkpasswd -H md5 $pwd | sed 's:/:\\/':) sed -i \ -e "/ user $user {/,/}/s/encrypted-password:.*\$/encrypted-password: \"$epwd\"/" \ -- cgit v1.2.3