You are not logged in.
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 usb2here'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 sda2and 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/sda2the 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
nobody know what's happening ?
Offline
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