View previous topic :: View next topic |
Author |
Message |
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sat Nov 18, 2006 11:52 pm Post subject: External drive with ntfs-3g/fuse - problem mounting as user |
|
|
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 |
|
|
but4er n00b
Joined: 22 Sep 2006 Posts: 18
|
Posted: Sun Nov 19, 2006 4:10 pm Post subject: |
|
|
same problem, probably broken fuse
|
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Sun Nov 19, 2006 5:56 pm Post subject: |
|
|
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 |
|
|
lindegur Apprentice
Joined: 14 Aug 2004 Posts: 292 Location: Swiss mountains
|
Posted: Wed Dec 06, 2006 1:46 pm Post subject: |
|
|
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
|
|
Back to top |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
Posted: Wed Dec 06, 2006 11:56 pm Post subject: |
|
|
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 |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Thu Dec 07, 2006 12:52 am Post subject: |
|
|
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
|
Thanks, will look into this. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
Bitspyer Apprentice
Joined: 17 Dec 2002 Posts: 211 Location: Mainz, Germany
|
Posted: Fri Dec 15, 2006 10:32 am Post subject: |
|
|
Also works for me...
THANKS!!!!!!! _________________ Der Weg zur Dunklen Seite... Schneller er ist, verführerischer, leichter. |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Fri Jan 19, 2007 12:57 am Post subject: |
|
|
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 |
|
|
gentunian Tux's lil' helper
Joined: 10 Jul 2006 Posts: 118 Location: Río Cuarto, Argentina
|
Posted: Tue Feb 13, 2007 12:48 am Post subject: |
|
|
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 |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
Posted: Tue Feb 13, 2007 8:03 am Post subject: |
|
|
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 |
|
|
|