How to hide the parent folder of the user home folders in File Sharing

file-sharingserver.app

I'm running 10.8 server and I have a folder named Users and it is the parent folder for every local network user's home folder. Now, when the user connects to the server he sees his home folder, but also the parent folder Users. He can even list the contents of it.

How can I hide this parent folder? I don't want it to show up at all when connecting. The only thing the users should see is their home folder. Nothing else. Since the Users folder is the parent folder, it cannot be unshared.

Best Answer

Mac is mostly unix under the hood. Try setting the permissions of the /Users folder to everyone only execute.

E.g. Currently:

bash-3.2# ls -ld /Volumes/Users drwxrwxrwx 10 root admin 510 23 May 2012 /Volumes/Users

bash-3.2# chmod o-rw /Volumes/Users

bash-3.2# ls -ld /Volumes/Users drwxrwx--x 10 root admin 510 23 May 2012 /Volumes/Users

OS X has addition access control tricks, so this may not work.