Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
External drive with ntfs-3g/fuse - problem mounting as user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Sat Nov 18, 2006 11:52 pm    Post subject: External drive with ntfs-3g/fuse - problem mounting as user Reply with quote

Hi,

Got an external caddy for a 40GB drive I had lying about, ideally I'd like to be able to use it rw in both Windows and Linux.

Only reasonable solution seems to be ntfs-3g/fuse combination.

Emerge'd ntfs-3g which pulled in fuse, added /etc/init.d/fuse to default runlevel, as it's an external drive, I don't want it to mount at boot, just when I power the drive on.

Edited /etc/fstab a per the instructions, and it can mount as root, also edited /etc/fuse.conf and added user_allow_other so I can mount it under my normal account (or rather, hal/dbus will automount it under KDE when I power the drive on). Getting this error message when I try to mount as normal user -

Quote:
fusermount: option blkdev is privileged
Failed to create FUSE mount point.
Retry to create FUSE mount point ...
fusermount: option blkdev is privileged
Failed to create FUSE mount point.
Unmounting /dev/sdb1 (Portable)


Trying to mount on /media/Portable (the disk was formatted under XP with the name Portable). /etc/fstab line looks like this-

Code:
/dev/sdb1               /media/Portable ntfs-3g rw,noauto,locale=en_GB.utf8,gid=6,umask=002,user 0 0


Anyone know how I can it to mount from my user account (gid=6 is the disk group, my user a/c is in that group)?
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
but4er
n00b
n00b


Joined: 22 Sep 2006
Posts: 18

PostPosted: Sun Nov 19, 2006 4:10 pm    Post subject: Reply with quote

same problem, probably broken fuse
:(
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Sun Nov 19, 2006 5:56 pm    Post subject: Reply with quote

but4er wrote:
same problem, probably broken fuse
:(


Looking through the fuse changelog's on its website, the priviliged blockdev thing seems deliberate.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
lindegur
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 292
Location: Swiss mountains

PostPosted: Wed Dec 06, 2006 1:46 pm    Post subject: Reply with quote

I run ntfs3g for quite a while but now after some updates it failed with the same error messages.

ntfs3g is not marked as stable, additionally it depends on certain versions of fuse.
Finally I found a combination that works
sys-fs/ntfs3g-0.20061031
sys-fs/fuse-2.6.0
/etc/portage/package.keywords

:lol:
Back to top
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Wed Dec 06, 2006 11:56 pm    Post subject: Reply with quote

lindegur wrote:
sys-fs/ntfs3g-0.20061031

Only the latest ntfs-3g safe during umount, and the fix required the partition being mounted as root. But I hope this won't be needed in the future versions.
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Thu Dec 07, 2006 12:52 am    Post subject: Reply with quote

lindegur wrote:
I run ntfs3g for quite a while but now after some updates it failed with the same error messages.

ntfs3g is not marked as stable, additionally it depends on certain versions of fuse.
Finally I found a combination that works
sys-fs/ntfs3g-0.20061031
sys-fs/fuse-2.6.0
/etc/portage/package.keywords

:lol:


Thanks, will look into this.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
Bitspyer
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 211
Location: Mainz, Germany

PostPosted: Fri Dec 15, 2006 10:32 am    Post subject: Reply with quote

Also works for me...

THANKS!!!!!!! :D
_________________
Der Weg zur Dunklen Seite... Schneller er ist, verführerischer, leichter.
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Fri Jan 19, 2007 12:57 am    Post subject: Reply with quote

Yay! New ntfs-3g dated 20070118 supports user(s) option in /etc/fstab for non-root mounting if you emerge it with the suid USE flag. Confirmed works here.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
gentunian
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2006
Posts: 118
Location: Río Cuarto, Argentina

PostPosted: Tue Feb 13, 2007 12:48 am    Post subject: Reply with quote

Quote:
Yay! New ntfs-3g dated 20070118 supports user(s) option in /etc/fstab for non-root mounting if you emerge it with the suid USE flag. Confirmed works here.


It worked for me too. Without the 'suid' in the USE flag doesnt work, and with the flag 'suid' in the USE variabe yes.

But, what about this?:
Quote:

* You have chosen to install ntfs3g with the binary setuid root. This
* means that if there any undetected vulnerabilities in the binary,
* then local users may be able to gain root access on your machine.


I mean, is there other kind of solution without exposing the system like that?
_________________
Si un pueblo tiene hambre, no le des un pez. Enséñale a pescar.
http://labombiya.com.ar
Back to top
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Tue Feb 13, 2007 8:03 am    Post subject: Reply with quote

gentunian wrote:
But, what about this?:
Quote:

* You have chosen to install ntfs3g with the binary setuid root. This
* means that if there any undetected vulnerabilities in the binary,
* then local users may be able to gain root access on your machine.


I mean, is there other kind of solution without exposing the system like that?

No because FUSE requires root. However ntfs-3g drops the root privilege after mount, so it's much more secure then any other in-kernel filesystems.

Of course you should also set the ntfs-3g file permissions so that only the trusted users have execution ability.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum