Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I set up shares to conditionally mount depending on which user logged in?

I have some shares on a NAS that I put in fstab, and the line in fstab looks like this:

192.168.1.101:/volume1/data /media/data nfs defaults 0 0

Now they mount automatically when I log into my computer (gnome-shell on ubuntu 12.10), and that's nice. However they also mount automatically when other users login, and I don't want that.

share|improve this question
    
ACL may be your answer. See here: askubuntu.com/a/52710/3940 –  Takkat Dec 3 '12 at 12:11
    
I don't have the answer for you but I'd like to warn you about this bug bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1084188 –  Bucic Dec 3 '12 at 12:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.