|
|
|
@ -69,7 +69,8 @@ for a in $(echo $NEEDEDUSERS | tr ",;" " " ) ;do
|
|
|
|
chroot . chmod -fR u+rw,g-rwx,o-rwx home/"${NEEDEDUSER}"/
|
|
|
|
chroot . chmod -fR u+rw,g-rwx,o-rwx home/"${NEEDEDUSER}"/
|
|
|
|
chroot . chmod -f 700 home/"${NEEDEDUSER}"
|
|
|
|
chroot . chmod -f 700 home/"${NEEDEDUSER}"
|
|
|
|
elif [ "${UPDATEHOME}" = "yes" ] ;then
|
|
|
|
elif [ "${UPDATEHOME}" = "yes" ] ;then
|
|
|
|
rsync -rlpt --ignore-existing etc/skel/ home/"${NEEDEDUSER}"
|
|
|
|
cp -afT etc/skel home/"${NEEDEDUSER}"
|
|
|
|
|
|
|
|
#rsync -rlpt --ignore-existing etc/skel/ home/"${NEEDEDUSER}"
|
|
|
|
chroot . bin/chown -R "${NEEDEDUSER}":"${NEEDEDUSER}" home/"${NEEDEDUSER}"
|
|
|
|
chroot . bin/chown -R "${NEEDEDUSER}":"${NEEDEDUSER}" home/"${NEEDEDUSER}"
|
|
|
|
chroot . chmod -fR u+rw,g-rwx,o-rwx home/"${NEEDEDUSER}"/
|
|
|
|
chroot . chmod -fR u+rw,g-rwx,o-rwx home/"${NEEDEDUSER}"/
|
|
|
|
chroot . chmod -f 700 home/"${NEEDEDUSER}"
|
|
|
|
chroot . chmod -f 700 home/"${NEEDEDUSER}"
|
|
|
|
|