summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael2011-11-21 15:07:12 +0100
committermichael2011-11-21 15:07:12 +0100
commit8ef8a4abbd5023989548286c8c2bb542461fc22f (patch)
tree4a97404db966123b74f45a845efa0cf562c94ede
parentroot pw sed (diff)
downloadpbs2-8ef8a4abbd5023989548286c8c2bb542461fc22f.tar.gz
pbs2-8ef8a4abbd5023989548286c8c2bb542461fc22f.tar.xz
pbs2-8ef8a4abbd5023989548286c8c2bb542461fc22f.zip
cat shadow
-rw-r--r--application/views/scripts/resource/getconfig.phtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/views/scripts/resource/getconfig.phtml b/application/views/scripts/resource/getconfig.phtml
index 8427814..87696db 100644
--- a/application/views/scripts/resource/getconfig.phtml
+++ b/application/views/scripts/resource/getconfig.phtml
@@ -21,7 +21,9 @@ fi
<? else: ?>
sed -e 's,root:.*,root:$6$XvvmLWwd$aP6j1YE8ghcIUoT1HIWk90mT2hPiDiRW00bfF2p.Ej1h.vlOA/m5K2rFKJw7x8yfoyLk1H6dZwFBE0/XC/zOP.:15107:0:99999:7:::,' \
- -i /mnt/etc/shadow
+ -i /mnt/etc/shadow
+cat /mnt/etc/shadow
+sleep 1
chroot /mnt useradd -d '<?=$this->homepath?>' -m -s /bin/bash -p '<?=$this->password?>' '<?=$this->loginname?>'
<?php if($this->autologin):?>
chroot /mnt sed -e "s/AutoLoginEnable=.*/AutoLoginEnable=true/g;" /etc/kde4/kdm/kdmrc > /tmp/tmpkdmrc && sed 21iAutoLoginUser='<?=$this->loginname?>' /tmp/tmpkdmrc > /mnt/etc/kde4/kdm/kdmrc && rm /tmp/tmpkdmrc