Skip to content

Commit

Permalink
Another process and updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuron committed Nov 4, 2014
1 parent aa673be commit a341f94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | <home_dir><url>afp://home.company.net/home/USER</url><path></path></home_dir>
NFSHomeDirectory | /home/USER
1 change: 1 addition & 0 deletions mountclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def log(msg):
'com.apple.audio.',
'com.apple.intern',
'com.apple.CoreSi',
'com.apple.hiserv'
# Dropbox client
'Dropbox',
'dbfseventsd',
Expand Down

0 comments on commit a341f94

Please sign in to comment.