fstab windows partition question

James Gray james at grayonline.id.au
Mon Mar 6 01:34:44 UTC 2006


On Monday 06 March 2006 11:50, Mark W. wrote:
> I would like to mount my ntfs partition to be readable to all
> users, by default it is readable to the root only.
> fstab line created by the Ubuntu install is:
>
> /dev/hda1 /media/hda1 user,auto  0  0
>
> What should it be so that the pertition is still mounted automatically
> at boot time, but is readable to all non-root users?

/dev/hda1 /media/hda1 ntfs ro,umask=0,auto  0  0

The "user" option simply makes it so that users can mount/unmount the file 
system.  When a USER mounts the NTFS file system it inherits their 
permissions, and only they (or root) can unmount it.  So if the file system 
is mounted during boot (as root) only root can read the files, and only root 
can unmount it.  See the dilemma?

Adding "umask=0" basically gives all users all permissions, but the "ro" makes 
the file system Read Only - NTFS only has experimental write capability.  
Depending on your needs, you may want to add the "noexec" flag to prevent 
files on the NTFS drive being executed (although this will also stop wine 
executing them too).

Cheers,

James
-- 
MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development.
	-- dmeggins at aix1.uottawa.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060306/9a2b0465/attachment.sig>


More information about the ubuntu-users mailing list