]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - mkhome.sh
Rigolo et harmless
[scripts-20-100.git] / mkhome.sh
1 #!/bin/bash
2
3 # Pour fabriquer le home d'un utilisateur
4
5 for user in $@
6 do
7 echo $user ?
8 read
9 mkdir -v -p /home/$user/Mail
10 chown -v -R $user:users /home/$user/
11 chmod -v 700 /home/$user/Mail
12 mkdir -v -p /home/mail/$user/
13 chown -v $user:mail /home/mail/$user/
14 done