Updated scripts
This commit is contained in:
parent
7ee48f98d9
commit
97acf514b3
|
@ -44,7 +44,7 @@ samba-tool group addmembers alunos $USERNAME
|
|||
echo "Creating home directory for user $USERNAME"
|
||||
mkdir /home/$USERNAME
|
||||
echo "Setting permissions for home directory"
|
||||
chmod 700 /home/$USERNAME/ -R
|
||||
chmod 711 /home/$USERNAME/ -R
|
||||
chown $USERNAME:'domain users' /home/$USERNAME/ -R
|
||||
|
||||
# Set user quota
|
||||
|
|
|
@ -31,6 +31,6 @@ while IFS="" read -r p || [ -n "$p" ]; do
|
|||
fi
|
||||
|
||||
echo "---"
|
||||
./pdc-add-user-professor.sh $USERNAME "$NAME"
|
||||
./pdc-add-user-servidor.sh $USERNAME "$NAME"
|
||||
|
||||
done <$file
|
||||
|
|
Loading…
Reference in New Issue
Block a user