i have a small question - how can i allow all users to use a mounted device which user root has mounted? the line in my /etc/fstab allows all users to mount this device, but i dont think this allows all users to use the mounted device if it was mounted by root...
/dev/uba1 /media/usb-disk auto sync,users,noauto,noatime,rw,iocharset=utf8 0 0
once the device was mounted (its been done by an auto-script, executed by udev) by user root, it is only accessible by root alone... i added (just to make sure) "ub*:root:users:0660" to /etc/udev/permissions.d/udev.permissions but this didnt help either.
actually, i have an even better fstab line perfect for this, which i've been using for quite some time...
[drive] /mnt/mp3 ntfs auto,gid=users,fmask=117,dmask=007 0 0
let me explain the options line for you
- automatically mount the partition on bootup
- set the group owner to users. (you can also say uid=steve to make all files belong to the user steve)
- if you're not familiar with the umask tool, masks are the opposite of your permissions. thus;
- fmask=117 means all files have 660 permissions. you don't want your mp3s to be executable.
- dmask=007 means directories have 770 permissions. you want your directories to be executable so you can cd into them.