Results 1 to 1 of 1
Hello,
I am using Linux Mandriva 2007 and whenever I plug in my USB drive (NTFS formatted) the "KDE Media assistant" (don't know the real name for the pop-up screen) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-11-2006 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 1
USB drives are automounted with permission for root only
Hello,
I am using Linux Mandriva 2007 and whenever I plug in my USB drive (NTFS formatted) the "KDE Media assistant" (don't know the real name for the pop-up screen) asks me what I want to do with it. Clicking the "open" option does actually mount it, but only with read/execute rights for root.
However, looking in mtab gives me this:Code:[tsd@bobby ~]$ ls -la /mnt/ total 11 drwxr-xr-x 5 root root 1024 Nov 11 22:05 ./ drwxr-xr-x 24 root root 1024 Nov 11 21:41 ../ drwxr-xr-x 2 root root 1024 Oct 29 20:50 cdrom/ dr-x------ 1 root root 4096 Oct 29 18:57 TSD-BACKUP/ dr-xr-xr-x 1 root root 4096 Nov 3 19:59 windows/ [tsd@bobby ~]$
having a look into the respective rule for udev shows me this:Code:/dev/hda1 /mnt/windows ntfs ro,umask=0,nls=utf8 0 0 /dev/hda7 /storage ext3 rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 /dev/sda1 /mnt/TSD-BACKUP ntfs rw,noexec,nosuid,nodev,sync 0 0
My question now is: Who or what does automatically write the mtab file here?Code:# usbfs-like devices SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c" # libusb device access (mount usbfs or usbdev nodes) DEVPATH=="/module/usbcore", ACTION=="add", \ RUN+="/bin/sh -c 'sleep 1; /bin/mount -t usbfs -o devmode=0664,devgid=43 none /proc/bus/usb'"
I would like to change it so that group and others have the rights to read and execute the volume "TSD-BACKUP" too.


Reply With Quote
