file permissions on vfat USB Stick

Thilo Six T.Six at gmx.de
Sun Nov 12 14:12:24 UTC 2006


Hello

When plugin a usb stick it is mounted as follows:

/dev/sdb1 on /media/SIX type vfat
(rw,nosuid,nodev,quiet,shortname=mixed,uid=1000,gid=1000,umask=077,iocharset=utf8)

But that has the drawback that all files on that device have execution
rights.

Manually mounted with:
mount -o rw,uid=1000,dmask=0077,fmask=0177 /dev/sdb1 /mnt/test/

i get:
/dev/sdb1 on /mnt/test type vfat (rw,uid=1000,dmask=0077,fmask=0177)

Now directories have 700 and files 600.
How can i make that permanently?

I have looked at /etc/udev/rules.d but i do not have any glue about them.


Any ideas?


TIA Thilo
--
i am on Ubuntu 2.6 KDE
- some friend of mine

gpg key: 0x4A411E09





More information about the ubuntu-users mailing list