You are not logged in.
Hey all.
I am trying to allow members of a specific group to manually mount a ntfs formatted partition with ntfs-3g without the use of sudo or su. The reason for this is that I do not want every random user being able to mount the partition manually nor having it mounted automatically at boot. Now, doing as follows all is fine and I can mount it as a regular user.
chmod u+s /bin/ntfs-3g
fstab entry:
/dev/sdb3 /win ntfs-3g rw,users,noauto,uid=1000,gid=501 0 0
However, as I am trying to allow users belonging to the group ntfsusers do the same, the above is less than optimal. I have tried these combinations:
chown root:ntfsusers /bin/ntfs-3g
chmod g+s /bin/ntfs-3g
fstab entry:
/dev/sdb3 /win ntfs-3g rw,ntfsusers,noauto,uid=1000,gid=501 0 0
chown root:ntfsusers /bin/ntfs-3g
chmod ug+s /bin/ntfs-3g
fstab entry:
/dev/sdb3 /win ntfs-3g rw,ntfsusers,noauto,uid=1000,gid=501 0 0
needless to say, neither of it works and gives me an error about only root being able to mount. Any ideas/suggestions will be greatly appreciated.
Cheers.
I made it long
as I lacked the time to make it short...
Offline
I recently tried to make my ntfs partition mount as normal user, but it appears that even if the user has the right to mount the volume, the FUSE device cannot be opened as normal user. You should make FUSE avaliable for user and then the entries you mentioned in fstab.
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Surely there has to be a cleaner solution than that, it is not really a path I want to follow tbh.
I made it long
as I lacked the time to make it short...
Offline
if i attacht an external hdd, its devices (/dev/sdb*) are assigned to te group 'storage' while the internal hdd (/dev/sda*) belongs to group 'disk'. So you can try to put your above mentioned partition /dev/sdb3 to group 'storage'
Last edited by kakTuZ (2007-12-12 22:49:09)
Offline
Ownership of the device node is set to root:disk per default and the user is already a member of both disk and storage groups, changing it won't make a difference iirc.
I made it long
as I lacked the time to make it short...
Offline