diff --git a/README.md b/README.md index c60b7f3..9004839 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,15 @@ In a way, this resembles what [uphclean](http://www.microsoft.com/de-de/download The script is run every two minutes and checks for mounts in /home. For each one, it checks whether the corresponding user has any processes running. If he only has background processes (names listed in the script) running, these are terminated and the home directory is unmounted. So processes and mounts belonging to a user currently logged in locally or via SSH are never touched. Also, users who e.g. started screen sessions before logging out are not touched. + +__Please note that this method only works for home directories mounted to /home.__ +It does not work for the default /Network/Servers because the OS mounts the home directory of a newly-logged-in user over the previous user's. + +Our home directories are set up with the following LDAP attributes. +In our experience, this configuration has further advantages over the default, including correctly supporting Fast User Switching and multiple concurrent SSH and local logins. +We are not aware of any side effects other than being unable to mount your home directory on clients running OS X 10.6.8 and earlier. + +Attribute | Value +----------------- +HomeDirectory | afp://home.company.net/home/USER +NFSHomeDirectory | /home/USER diff --git a/mountclean.py b/mountclean.py index e75159b..2950c66 100755 --- a/mountclean.py +++ b/mountclean.py @@ -47,6 +47,7 @@ def log(msg): 'com.apple.audio.', 'com.apple.intern', 'com.apple.CoreSi', + 'com.apple.hiserv' # Dropbox client 'Dropbox', 'dbfseventsd',