Hi,
I have an external USB hard drive, formatted NTFS. I installed the ntfs-3g and ntfs-config packages and ran ntfs-config (all on Kubuntu Feisty, 7.04), after which my USB drive worked for both reading and writing, including automount (Nice!).
Here's the problem: When it is automounted, the drive is owned as root, and the umask is very permissive. I would like it to mount as me, not root, and for the umask to be something more restrictive, like 0002.
In other words:
The drive mounts automatically with permissisons and ownership,
I would like the drive to have permissions,
I tried adding the following line to fstab,
After adding this line, I can mount the drive by running mount as root, but, despite the "user" option above, (1) I cannot run mount as a normal user, and (2) KDE's automounter fails, giving the 'Malformed URL' message. I assume that if I get mount working for normal users, then pmount will work (the manpage for pmount says that it runs mount as the user who ran pmount if it finds the drive in /etc/fstab), and so KDE's automount will work.
I tried making sure that the ntfs-3g binary was setuid root; e.g.,
but this didn't seem to change anything.
Summary: How can I mount an ntfs-3g filesystem as a non-root user? Will this allow me to change the permissions on an automounted usb drive? If not, how do I?
Any suggestions at all are greatly appreciated.
I have an external USB hard drive, formatted NTFS. I installed the ntfs-3g and ntfs-config packages and ran ntfs-config (all on Kubuntu Feisty, 7.04), after which my USB drive worked for both reading and writing, including automount (Nice!).
Here's the problem: When it is automounted, the drive is owned as root, and the umask is very permissive. I would like it to mount as me, not root, and for the umask to be something more restrictive, like 0002.
In other words:
The drive mounts automatically with permissisons and ownership,
Code:
drwxrwxrwx root root
Code:
drwxrwxr-x myusername myusername
Code:
/dev/disk/by-label/Extra3 /media/Extra3 ntfs-3g user,noauto,locale=en_US.utf8,uid=1000,gid=1000,umask=0002,noatime,noadirtime 0 0
I tried making sure that the ntfs-3g binary was setuid root; e.g.,
Code:
sudo chmod u+s /usr/bin/ntfs-3g
Summary: How can I mount an ntfs-3g filesystem as a non-root user? Will this allow me to change the permissions on an automounted usb drive? If not, how do I?
Any suggestions at all are greatly appreciated.
Comment