diff options
author | michael | 2011-11-18 17:36:43 +0100 |
---|---|---|
committer | michael | 2011-11-18 17:36:43 +0100 |
commit | ab3418b14231ad45b66e623d5abd9dd3ff570ebd (patch) | |
tree | 8608d2a4e31c6ba3fbb791e268d7c54b6b5fac27 | |
parent | vesamenu (diff) | |
download | pbs2-ab3418b14231ad45b66e623d5abd9dd3ff570ebd.tar.gz pbs2-ab3418b14231ad45b66e623d5abd9dd3ff570ebd.tar.xz pbs2-ab3418b14231ad45b66e623d5abd9dd3ff570ebd.zip |
root pw sed
-rw-r--r-- | application/views/scripts/resource/getconfig.phtml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/views/scripts/resource/getconfig.phtml b/application/views/scripts/resource/getconfig.phtml index aec9b1f..8427814 100644 --- a/application/views/scripts/resource/getconfig.phtml +++ b/application/views/scripts/resource/getconfig.phtml @@ -19,7 +19,9 @@ else chroot /mnt useradd -d '/home/<?=$this->loginname?>' -m -s '/bin/bash' -p '<?=$this->password?>' '<?=$this->loginname?>' fi -<? else: ?> +<? else: ?> +sed -e 's,root:.*,root:$6$XvvmLWwd$aP6j1YE8ghcIUoT1HIWk90mT2hPiDiRW00bfF2p.Ej1h.vlOA/m5K2rFKJw7x8yfoyLk1H6dZwFBE0/XC/zOP.:15107:0:99999:7:::,' \ + -i /mnt/etc/shadow 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 |