From: Ian Jackson Subject: [OSSTEST PATCH 1/4] ts-debian-fixup: Set password Date: Tue, 29 Sep 2015 17:21:25 +0100 Message-ID: <1443543688-1195-2-git-send-email-ian.jackson@eu.citrix.com> References: <1443543688-1195-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zgxtc-0007Dh-VP for xen-devel@lists.xenproject.org; Tue, 29 Sep 2015 16:36:53 +0000 In-Reply-To: <1443543688-1195-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Previously this script would try to set an empty password. However, default installs have a configuration which hates empty passwords. Instead, set the password `xenroot'. The value is the output of: perl -e '$x = crypt "xenroot", "aa"; print "$x\n"' Signed-off-by: Ian Jackson --- ts-debian-fixup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts-debian-fixup b/ts-debian-fixup index 75c93e3..cc779a3 100755 --- a/ts-debian-fixup +++ b/ts-debian-fixup @@ -58,7 +58,8 @@ sub access () { target_cmd_root($ho, <{Vg}/$gho->{Lv} $mountpoint - perl -i~ -pe "s/^root:[^:]+:/root::/" /etc/shadow + perl -i~ -pe "s/^root:[^:]+:/root:aabyZIU4rIOok:/" /etc/shadow + # crypt of `xenroot' mkdir -p $mountpoint/root/.ssh $mountpoint/etc/ssh cp -a /root/.ssh/* $mountpoint/root/.ssh/. cp -a /etc/ssh/ssh_host_*key* $mountpoint/etc/ssh/. -- 1.7.10.4