diff options
author | michael | 2011-11-21 16:58:18 +0100 |
---|---|---|
committer | michael | 2011-11-21 16:58:18 +0100 |
commit | d865871bd3cf944f9098b90836cf677282c3992f (patch) | |
tree | ae3652c1b691f265d1ee12c7d012440af6856299 /application/views | |
parent | skel fix (diff) | |
download | pbs2-d865871bd3cf944f9098b90836cf677282c3992f.tar.gz pbs2-d865871bd3cf944f9098b90836cf677282c3992f.tar.xz pbs2-d865871bd3cf944f9098b90836cf677282c3992f.zip |
homefolder owner
Diffstat (limited to 'application/views')
-rw-r--r-- | application/views/scripts/resource/getconfig.phtml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application/views/scripts/resource/getconfig.phtml b/application/views/scripts/resource/getconfig.phtml index 151aec8..40a918d 100644 --- a/application/views/scripts/resource/getconfig.phtml +++ b/application/views/scripts/resource/getconfig.phtml @@ -29,6 +29,10 @@ 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 +echo '<?=$this->loginname?>:x:<?=$this->userid?>:' >> /mnt/etc/group + +chroot /mnt chown -R /home_local/<?=$this->loginname?> +chroot /mnt chgrp -R /home_local/<?=$this->loginname?> #chroot /mnt useradd -d '<?=$this->homepath?>' -d '/home_local/<?=$this->loginname?>' -m -s /bin/bash -p '<?=$this->password?>' '<?=$this->loginname?>' |