Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #207178 > unrolled thread

ntfs-3g - mounting as normal user?

Started byHans <hans.ullrich@loop.de>
First post2019-04-09 16:20 +0200
Last post2019-04-09 17:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  ntfs-3g - mounting as normal user? Hans <hans.ullrich@loop.de> - 2019-04-09 16:20 +0200
    Re: ntfs-3g - mounting as normal user? Reco <recoverym4n@enotuniq.net> - 2019-04-09 17:30 +0200

#207178 — ntfs-3g - mounting as normal user?

FromHans <hans.ullrich@loop.de>
Date2019-04-09 16:20 +0200
Subjectntfs-3g - mounting as normal user?
Message-ID<xKZLr-579-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi folks,

I am not sure, but when I want to mount a ntfs-filesystem using ntfs-3g, I 
always need to input the password of root.

According to the manual, if ntfs-3g is setuid-root, it shall allow normal 
users to mount ntfs-files.

So, I have rwsr-xr-x with owner root:root, which IMO should do the trick, but 
still asking for the password.

However, I remember dark, there was something with "hardcoded in ntfs-3g", 
which does this no more let work. This was years ago and I only remember weak.

Thus led me to the conclusion, that either I am doing something wrong, or the 
manual is wrong (and of course should be corrected then).

Does someone know better or should I file a bugreport?

Best regards

Hans

 

 

[toc] | [next] | [standalone]


#207183

FromReco <recoverym4n@enotuniq.net>
Date2019-04-09 17:30 +0200
Message-ID<xL0Rc-5KX-7@gated-at.bofh.it>
In reply to#207178
	Hi.

On Tue, Apr 09, 2019 at 04:13:15PM +0200, Hans wrote:
> Hi folks,
> 
> I am not sure, but when I want to mount a ntfs-filesystem using ntfs-3g, I 
> always need to input the password of root.
> 
> According to the manual, if ntfs-3g is setuid-root, it shall allow normal 
> users to mount ntfs-files.

It does for me:

$ dd if=/dev/zero of=1.raw bs=1024 count=0 seek=10240
$ /sbin/mkfs.ntfs -F 1.raw
...
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
$ ntfs-3g 1.raw .fuse
$ mount
...
...1.raw on .../.fuse type fuse (rw,nosuid,nodev,relatime...)


> So, I have rwsr-xr-x with owner root:root, which IMO should do the trick, but 
> still asking for the password.

Your user does have read-write access to the underlying block device,
its not it?


> However, I remember dark, there was something with "hardcoded in ntfs-3g", 
> which does this no more let work. This was years ago and I only remember weak.

That only applies if:

a) ntfs-3g is suid root-owned binary.
b) ntfs-3g uses 'external' libfuse.so (i.e. dynamic link to a library).

But they build ntfs-3g with '--with-fuse=internal' flag, so last one
should not apply.

Reco

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web