summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael2011-11-21 16:29:40 +0100
committermichael2011-11-21 16:29:40 +0100
commit76acc930a98e7d35956ec0389e2d38fc5fb82448 (patch)
tree454022a7a1bcf60794121155e0f85920d46b5f8a
parentuseradd ersetzt (diff)
downloadpbs2-76acc930a98e7d35956ec0389e2d38fc5fb82448.tar.gz
pbs2-76acc930a98e7d35956ec0389e2d38fc5fb82448.tar.xz
pbs2-76acc930a98e7d35956ec0389e2d38fc5fb82448.zip
skel copy in user directory
-rw-r--r--application/views/scripts/resource/getconfig.phtml3
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