From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>
Subject: [OSSTEST PATCH 1/4] ts-debian-fixup: Set password
Date: Tue, 29 Sep 2015 17:21:25 +0100 [thread overview]
Message-ID: <1443543688-1195-2-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1443543688-1195-1-git-send-email-ian.jackson@eu.citrix.com>
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 <Ian.Jackson@eu.citrix.com>
---
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, <<END);
set -ex
mount /dev/$gho->{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
next prev parent reply other threads:[~2015-09-29 16:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 16:21 [OSSTEST PATCH 0/4] Miscellaneous bald yaks Ian Jackson
2015-09-29 16:21 ` Ian Jackson [this message]
2015-09-29 16:21 ` [OSSTEST PATCH 2/4] Do not multiply console hvc0 getty entries Ian Jackson
2015-09-29 16:21 ` [OSSTEST PATCH 3/4] Runvar functions: Provide target_xenkernel_ver Ian Jackson
2015-09-29 16:21 ` [OSSTEST PATCH 4/4] Runvar functions: Introduce target_var and target_store_runvar Ian Jackson
2015-09-30 8:20 ` [OSSTEST PATCH 0/4] Miscellaneous bald yaks Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443543688-1195-2-git-send-email-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).