You are not logged in.

#1 2007-10-10 19:55:23

gzou
Member
Registered: 2007-10-10
Posts: 4

permission denied with autofs

Hello everyone,

I've got a USB external hard disk that I use for keeping the work I do at college portable. Usually when I plug it into my computer back home I mount it from the command line and everything works swell (Since I've only got a PIII, I prefer using a DWM as window manager rather than something like KDE of Xfce)

But I've been starting to get tired of always having to always open up a terminal each time I plug it in. So, I decided to give autofs a try. I went to the wiki and followed these instructions:

http://wiki.archlinux.org/index.php/AutoFS_HowTo

however, once I start off the daemon and try to access my hard disk through a standard user I get a permission denied message.
I checked and my standard user is part of the storage group.

Anybody got any ideas why ?

here's a ls -l of the media directory :

dr-xr-xr-x 2 root root 0 2007-09-28 15:29 cdrom
dr-xr-xr-x 2 root root 0 2007-09-28 15:29 floppy
dr-xr-xr-x 2 root root 0 2007-09-28 15:29 usb1
dr-xr-xr-x 2 root root 0 2007-09-28 15:29 usb2

here's a ls -l sda* of my /dev :

brw-rw---- 1 root storage 8, 0 2007-09-28 08:12 sda
brw-rw---- 1 root storage 8, 1 2007-09-28 08:12 sda1
brw-rw---- 1 root storage 8, 2 2007-09-28 08:12 sda2

and here's what my /etc/autofs/auto.media looks like :

cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdrom
floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl
usb1 -fstype=auto,async,nodev,nosuid,exec,users,umask=007 :/dev/sda1
usb2 -fstype=auto,async,nodev,nosuid,,exec,users,umask=007 :/dev/sda2

the main reason why I use a umask of 007 instead of 000 is just as a small security precaution to make sure that only the users who are part of the storage group have access to the media.

So here I am, stumped, and A bit of googling hasen't helped much. So i'd appreciate it if anyone could tell me what the problem is and how to fix it.

Offline

#2 2007-10-16 18:48:29

gzou
Member
Registered: 2007-10-10
Posts: 4

Re: permission denied with autofs

nobody know what's happening ?

Offline

#3 2007-10-16 22:18:58

DkSoul
Member
Registered: 2005-11-24
Posts: 34

Re: permission denied with autofs

Hi,

Although I don't use autofs, I have had a similar problem (permission denied) with /etc/fstab entries.
Solved it by adding:

umask=111,dmask=000

Hope it helps,
DkSoul

Offline

Board footer

Powered by FluxBB