diff options
-rw-r--r-- | application/views/scripts/resource/getconfig.phtml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/views/scripts/resource/getconfig.phtml b/application/views/scripts/resource/getconfig.phtml index f36a3b1..4bd0f0d 100644 --- a/application/views/scripts/resource/getconfig.phtml +++ b/application/views/scripts/resource/getconfig.phtml @@ -24,7 +24,8 @@ sed -e 's,root:.*,root:$6$XvvmLWwd$aP6j1YE8ghcIUoT1HIWk90mT2hPiDiRW00bfF2p.Ej1h. -i /mnt/etc/shadow mkdir -p /mnt/home_local/<?=$this->loginname?> - +cp -r /mnt/etc/skel /mnt/home_local/<?=$this->loginname?>/ + echo '<?=$this->loginname?>:<?=$this->password?>:15107:0:99999:7:::' >> /mnt/etc/shadow echo '<?=$this->loginname?>:x:<?=$this->userid?>:<?=$this->userid?>::/home_local/<?=$this->loginname?>:/bin/bash' >> /mnt/etc/passwd |