Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: /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: – 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 – Bucic Dec 3 '12 at 12:14

Your Answer


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

Browse other questions tagged or ask your own question.