Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not being able to mount ntfs as common user... again.
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
wpkzz
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2013
Posts: 76

PostPosted: Wed Jul 27, 2016 7:26 pm    Post subject: Not being able to mount ntfs as common user... again. Reply with quote

Hello Fellow Gentooers:

I am sure this has been questioned and answered to the death but I am still unable to grasp what I am doing wrong or not doing.

I have this external hard drive formated in windows ntfs. I have my kernel with the following related options set:


Code:

mezcalina linux # cat .config | grep NTFS

CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y


I also have emerged ntfs3g with the following useflags
Code:

 Installed versions:  2015.3.14(12:35:06 PM 07/27/2016)(acl ntfsprogs suid xattr -debug -external-fuse -ntfsdecrypt -static-libs)


Then I followed the rights/permissions instructions at the webpage of the ntfs3g team
(http://www.tuxera.com/community/ntfs-3g-faq/#useroption), namely,
these instructions (as root):

Code:

 chown root $(which ntfs-3g)[/url]

chmod 4755 $(which ntfs-3g)
[/code]

Then I made the following fstab entry:

Code:

UUID=C0008899008897D4   /media/discogrande   ntfs-3g      rw,user,auto,exec,uid=1000,gid=100   0 0


But still, ntfs3g complains about my normal user being non allowed to mount the so called "discogrande"
(the mountpoint has a+rwx permissions)

Code:

Error opening '/dev/sdb1': Permission denied
Failed to mount '/dev/sdb1': Permission denied
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged


I also have read the other threads in the same vein,
https://forums.gentoo.org/viewtopic-t-1035080-highlight-ntfs3g.html
and
https://forums.gentoo.org/viewtopic-t-1036076-highlight-ntfs3g.html
but these seem to suggest what I already did.

Any ideas of what I am missing?

Thanks in advance,
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Aug 05, 2016 2:51 pm    Post subject: Reply with quote

uid=1000,gid=100

it's user id and group id ; if with that it still doesn't allow your user to mount it, it might just be because your user is not 1000 or not from group 100
check it as user: id
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 1775
Location: Here and Away Again

PostPosted: Thu Aug 11, 2016 10:50 am    Post subject: Re: Not being able to mount ntfs as common user... again. Reply with quote

As a sidey-note, the in-kernel driver

wpkzz wrote:
I have this external hard drive formated in windows ntfs. I have my kernel with the following related options set:


Code:

mezcalina linux # cat .config | grep NTFS

CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y

is generally not suggested for use over the 'ntfs3g'. The write support, while safe, is only partial, and can not create new files at all (from the kernel description: “The only supported operation is overwriting existing files, without changing the file length.”).

In other words, it has nothing to do with 'sys-fs/ntfs3g', so you can safely disable that support in the kernel.

I don't imagine it is the reason for your trouble, but I can't say it's impossible either. It probably isn't something like the in-kernel driver is already mounting the partition(s) for example, and as such, doesn't let others play with it/them. I'd guess there would be some other kind of messages displayed in such a situation (something like “is already mounted”). Running the command 'mount' should show if they're mounted or not, and by which driver (I don't believe they are).

So with that said, krinn is likely to be closer to that which is going on. I just wanted to point out the things about the in-kernel driver. ^^

Just as another sidey-note, the partitions can be mounted as root? (I'm thinking yes, but asking shouldn't hurt!)
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
wpkzz
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2013
Posts: 76

PostPosted: Mon Aug 15, 2016 6:17 pm    Post subject: Reply with quote

Yes yes, it can be mounted as root and used, once mounted, as normal user.

Then, i have this weird propierty: mi id gives the following data:

Code:

karel@mezcalina ~ $id
uid=1000(karel) gid=1000(karel) groups=1000(karel),7(lp),10(wheel),18(audio),19(cdrom),27(video),85(usb),104(plugdev),105(vboxusers),106(lpadmin),250(portage)


which looks as my and my group are the same entity?
That makes sense? Why is that?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43207
Location: 56N 3W

PostPosted: Mon Aug 15, 2016 6:56 pm    Post subject: Reply with quote

wpkzz,

UID and GID occupy different name spaces. Its not a problem that they are equal numeric values.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
wpkzz
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2013
Posts: 76

PostPosted: Tue Aug 16, 2016 6:46 pm    Post subject: Reply with quote

Well, I changed fstab to be on agreement with my id information, and still cannot mount it as normal user. Same message about not having privileges.

Code:

karel@mezcalina ~ $id
uid=1000(karel) gid=1000(karel) groups=1000(karel),7(lp),10(wheel),18(audio),19(cdrom),27(video),85(usb),100(users),104(plugdev),105(vboxusers),106(lpadmin),250(portage)

karel@mezcalina ~$ cat /etc/fstab | grep discogrande
UUID=C0008899008897D4   /media/discogrande   ntfs-3g      rw,user,auto,exec,uid=1000,gid=1000   0 0


karel@mezcalina ~ $mount /media/discogrande/
Error opening '/dev/sdb1': Permission denied
Failed to mount '/dev/sdb1': Permission denied
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged



So, no progress still.
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