You are not logged in.
Pages: 1
hi there
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.
any ideas?
thanks
Offline
i cannot recall the exact syntax but you can add umask=0666 into the mount statement
Offline
found it: http://bbs.archlinux.org/viewtopic.php?t=6434
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.
Offline
i would kiss u if i could!
tnx a lot man
edit:
the correct syntax was '-o umask=0660'
Offline
Offline
Pages: 1