You are not logged in.
Pages: 1
Hello, I have these:
[virus_found@arch ~]$ cat /etc/udev/rules.d/00.rules
KERNEL=="sd[b-z]", NAME="%k", SYMLINK+="flash", GROUP="users", OPTIONS="last_rule"
KERNEL=="sd[b-z][0-9]", NAME="%k", SYMLINK+="flash", GROUP="users", OPTIONS="last_rule"
[virus_found@arch ~]$ cat /etc/autofs/auto.master
/media /etc/autofs/auto.misc
[virus_found@arch ~]$ cat /etc/autofs/auto.misc
cd -fstype=auto,ro,nodev,nosuid,users :/dev/cdrom
flash -fstype=auto,rw,noauto,sync,dirsync,noexec,nodev,noatime,users :/dev/flash
card -fstype=auto,rw,noauto,sync,dirsync,noexec,nodev,noatime,users :/dev/card
Udev rules are for symlinking to /dev/flash. All is working, except for users flag in mount options of auto.misc. Everythng is mounted with root rights How do I solve this?
Last edited by virus_found (2009-10-13 07:53:53)
Offline
try user (no S at the end) instead of users (fstab syntax, see man fstab)
Fred
Offline
Unfortunately, that won't do anything. Everything is still automounted as root
I wonder, does nobody use Autofs? If so, what's the alternative to it? Except for overbloated GUI filemanagers? Does everybody mount in terminal everytime a cd or flash is inserted? -_-
Offline
I use uid/gid instead, and it works for me.
sda1 -fstype=auto,defaults,noatime,gid=100,uid=1000,nls=utf8 :/dev/sda1
sda4 -fstype=auto,defaults,noatime,iocharset=utf8,uid=1000,gid=100 :/dev/sda4
Hope that helps.
Offline
Using uid/gid seems to be the best solution for this case. You could get your group id by running the following command :
grep "your group" /etc/group
Offline
Thanks to you all. That did the trick. I should have looked through the manuals more thoroughly
Last edited by virus_found (2009-09-30 17:36:46)
Offline
Pages: 1