Hallo Jürgen, Gordon,
> Der Ort hierfür wäre /etc/linuxmuster-client/post-umount.d > Dort z. B. eine Datei 002-homedel anlegen > --- > # loescht das lokale Benutzerverzeichnis > rm -Rf /home/*/$USER > --- Ich stimme Jürgen zu. Besser als rc.local allemal. Die Skripte werden als root ausgeführt, kennen aber den benutzer noch, d.h. /etc/linuxmuster-client/post-umount.d/002-homedel würde ich so schreiben: # this file is sourced from /usr/sbin/linuxmuster-pam-mount # 2015 T.Kuechel <[email protected]> # source config file . /etc/linuxmuster-client/profile/profile.conf || exit 1 # source profile functions . /var/lib/linuxmuster-client-profile/functions.inc || exit 1 # log some info $LOGGING && msg2log post-umount "Entering 001-homedel $1 $2" $LOGGING && msg2log post-umount "Environment settings are: USER=$USER VOLUME=$VOLUME MNPT=$MNTPT OPTIONS=$OPTIONS SERVER=$SERVER NUMUID=$NUMUID NUMPRIGID=$NUMPRIGID FULLNAME=$FULLNAME HOMEDIR=$HOMEDIR LOGINSHELL=$LOGINSHELL" # this script gets executed only once, after the users home from the # server got unmounted. in this case $USER and $VOLUME are the same if [ $USER != $VOLUME ]; then return 0 fi # check, if the Home_auf_Server Directory is not empty and return . /etc/linuxmuster-client/linuxmuster-client.conf || exit 1 if [ "$(ls -A $HOMEDIR/$HOMEFOLDERNAME)" ]; then msg2log post-umount "$HOMEFOLDERNAME is not empty, not removing." return 0 fi rm -rf ${HOMEDIR} Grüße, Tobias _______________________________________________ linuxmuster-user mailing list [email protected] https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user
