You are not logged in.

#1 2007-12-12 17:34:33

ndlarsen
Member
From: Denmark
Registered: 2005-11-02
Posts: 157

manual mount as user with ntfs-3g.

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

#2 2007-12-12 18:22:04

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: manual mount as user with ntfs-3g.

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

#3 2007-12-12 21:58:57

ndlarsen
Member
From: Denmark
Registered: 2005-11-02
Posts: 157

Re: manual mount as user with ntfs-3g.

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

#4 2007-12-12 22:48:27

kakTuZ
Member
From: Hannover, Germany
Registered: 2007-10-20
Posts: 86

Re: manual mount as user with ntfs-3g.

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

#5 2007-12-12 23:09:02

ndlarsen
Member
From: Denmark
Registered: 2005-11-02
Posts: 157

Re: manual mount as user with ntfs-3g.

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

Board footer

Powered by FluxBB