[olug] fstab and windows partition

Thom Harrison id4spam at cox.net
Sat Apr 10 14:55:14 UTC 2004


I use the following.

/dev/hda7            /windows/D           vfat       
noauto,users,noexec,umask=022 0 0

noauto -  /windows/D doesn't mount automatically at bootup.
users  -  any user can mount and umount the partition.
noexec -  shell scripts can run but not executable binaries.
umask  -  022 makes everything rwxr-xr-x ( both directories and files )

With this setup, a specific user ID ( we'll call it godzilla ) can mount 
the partition.

$ mount /windows/D

Everything will then appear to be owned by godzilla with rwx permissions.

Another approach would be to use auto,users,noexec,umask=000

This would automatically mount /windows/D at boot.  Everything will 
appear to be owned by root.  However, since we have a umask=000 the 
permissions will be rwxrwxrwx for both files and directories.

As far as your other options, you can leave them as they are.

The default options are: rw, suid, dev, exec, auto, nouser, and async.

Thom


Craig Wolf wrote:

>Ok, I am not sure what I did wrong but I can edit/change things from the command line as root but not in X as a user.  Is my fstab setup right?
>/dev/hda5 /mnt/Win_Data vfat rw,users,suid,dev,exec,auto,async 0 0
>I thought so from reading the man page but I must have missed something...TIA!
>
>Craig Wolf
>Linux Web Server Support
>Desktop/Network Specialist
>402-894-6283
>
>_______________________________________________
>OLUG mailing list
>OLUG at olug.org
>http://lists.olug.org/mailman/listinfo/olug
>
>  
>


More information about the OLUG mailing list