You are not logged in.

#1 2004-10-20 19:02:17

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

mounting problem

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

#2 2004-10-20 19:05:14

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mounting problem

i cannot recall the exact syntax but you can add umask=0666 into the mount statement

Offline

#3 2004-10-20 19:07:37

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mounting problem

found it: http://bbs.archlinux.org/viewtopic.php?t=6434

paranoos wrote:

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

#4 2004-10-20 19:09:16

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: mounting problem

i would kiss u if i could! wink

tnx a lot man

edit:
the correct syntax was '-o umask=0660' wink

Offline

#5 2004-10-20 19:16:30

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: mounting problem

OT:
@paranoos: I want a user named "steve" LOL

Offline

Board footer

Powered by FluxBB