]>
gitweb.pimeys.fr Git - scripts-20-100.git/blob - populate_forward.sh
3 # Remplir le fichier forward
9 HOMEDIR
=$
(getent passwd
${USER} | cut
-d ":" -f 6)
10 FILE
=${HOMEDIR}/forwards
13 chown
${USER}:users
${FILE}
16 find /home
-mindepth 2 -maxdepth 2 -type d |
sort | \
17 while read -r dossier
;
19 if test -f ${dossier}/.forward
;
21 echo -n "${dossier/\/home\//} : ";
22 cat ${dossier}/.forward
27 echo "À exécuter en root !"