Page 1 of 1

Only Root Can Mount USB Drive

Posted: Mon Oct 06, 2008 8:09 pm
by brando569
I want to be able to mount my usb thumb drive without having to authenticate myself. i read the notice that pops up which says either mount the device as root or recompile ntfs-3g with fuse support and make it setuid root. i downloaded the source for the newest ntfs-3g and compiled it as it said.

I also executed these commands so that I could mount any ntfs drive as an unprivileged user:

Code: Select all

chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)
source

when I inserted my usb drive it pops up konqueror but instead of giving me an error it just doesnt do anything (it doesnt mount the drive).

so i tried this:

Code: Select all

chown root $(which ntfs-3g)
chmod 4755 $(which ntfs-3g)
source

but got the same problem.

Re: Only Root Can Mount USB Drive

Posted: Tue Oct 07, 2008 8:35 am
by Husse
I'm a bit baffled here
I should say that I don't have anything with ntfs on USB - only fat
When you connect the USB drive it is mounted by pmount that is a mount in user space
See man pmount or
http://linux.die.net/man/1/pmount

Re: Only Root Can Mount USB Drive

Posted: Tue Oct 07, 2008 4:05 pm
by brando569
ok but how can i make it automatically use pmount when i insert the usb drive? the drive had fat32 on it i believe when i first got it but i reformatted it with ntfs because i use it most on windows and to transport large files (its a 4gb flash drive)

Re: Only Root Can Mount USB Drive

Posted: Wed Oct 08, 2008 6:47 am
by Husse
That's the default unless the device is listed in fstab
To be sure - what happens when you insert the stick?
Any difference if it's connected during boot?