[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 1/4] ts-debian-fixup: Set password



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@xxxxxxxxxxxxx>
---
 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.