Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I am using this is fstab to mount the partition at backup.

/dev/sda5 /media/virtual ntfs defaults 0 0

When i reboot the permissions are automatically set to 777.

I want that only one user i.e userA can read and write , all others should not see the contents of that drive.

What should i do

anything like

 /dev/sda5 /media/virtual ntfs userA 700  defaults 0 0
share|improve this question

/dev/sda5 /media/virtual ntfs defaults,umask=700,uid=1 0 0

change the UID to the appropriate user (found in /etc/passwd). 1 is root.

share|improve this answer
That was tricy i had to use 077 to make it work – John May 12 '10 at 7:37
I tried that and it works but it is making 700 permission of all the folders inside as well , how can i only make those permissions for one main folder virtual only – John May 12 '10 at 8:00

Your Answer


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