You are not logged in.

#1 2012-02-26 09:36:00

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,397

ntfs-3g as user problem

Today i discovered dolphin wont mount my sda1 ntfs partition anymore.
Then from terminal i issued:

ntfs-3g /dev/sda1 /mnt/xp/
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

..."fine", i tried the suggestion in the link and made suid ntfs-3g

kokonicki@netbook /tmp $ ntfs-3g /dev/sda1 /mnt/xp/
Mount is denied because setuid and setgid root ntfs-3g is insecure with the
external FUSE library. Either remove the setuid/setgid bit from the binary
or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

..."great", should i ask for a repackage?

(aur provides that anyway)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2012-02-26 09:44:35

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: ntfs-3g as user problem


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#3 2012-02-26 09:54:51

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: ntfs-3g as user problem

you are doing it wrong.
dolphin can mount as user because it uses udisks and polkit to allow regular users to mount.
mounting internal partitions is a root job. so do it as root and not as regular user.

# ntfs-3g /dev/sda1 /mnt/xp


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2012-02-26 09:55:54

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,397

Re: ntfs-3g as user problem

@ethail:
Yes, but
- my /dev/sda1 is not an usb device
- using udev rules doesn't seems to follow the KISS way at all to me.

@wonder
Actually dolphin can't mount anymore, but i am sure in the past it mounted correctly.
from unprivileged user, udisks --mount /dev/sda1 gave the same error, and from what i read it is unlikely the problem is related to internal partition only:
"user can not mount NTFS block devices using the external FUSE library."
isn't an external usb stick formatted in ntfs a block device?

I don't have any to try right now.

Last edited by kokoko3k (2012-02-26 10:01:40)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#5 2012-02-26 10:44:38

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: ntfs-3g as user problem

kokoko3k wrote:

@ethail:
- my /dev/sda1 is not an usb device


I expected you to read the index of the article and find this:

https://wiki.archlinux.org/index.php/Ud … ormal_user

Apparently you didn't.


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#6 2012-02-26 11:19:38

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,397

Re: ntfs-3g as user problem

You were right, i didn't because i don't want to write udev or policykit rules at all.
I wonder how is that supposed to be 'simple' as long as  what is changed lately that don't allow ntfs to mount internal (external too?) partition/drives anymore.

Thanks ethail anyway for pointing me right to that one.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB