Only Root Can Mount USB Drive

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
brando569

Only Root Can Mount USB Drive

Post 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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Only Root Can Mount USB Drive

Post 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
brando569

Re: Only Root Can Mount USB Drive

Post 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)
Husse

Re: Only Root Can Mount USB Drive

Post 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?
Locked

Return to “Software & Applications”