FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed Oct 18, 2017 07:46



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Why the check for root privilege in ntfs-3g.c? 
Author Message

Joined: Fri Aug 09, 2013 17:08
Posts: 1
Post Why the check for root privilege in ntfs-3g.c?
Just curious, why is the following check made in src/ntfs-3g.c?

#ifndef FUSE_INTERNAL
if (getuid() && ctx->blkdev) {
ntfs_log_error("%s", unpriv_fuseblk_msg);
err = NTFS_VOLUME_NO_PRIVILEGE;
goto err2;
}
#endif

If I comment this out then I get a ntfs-3g binary which I can use to mount a NTFS file-system as a non-privileged user (providing the block device and mount point are readable/writer by said user) and everything seems to work fine. What am I missing?

Thanks, Nick.


Fri Aug 09, 2013 18:38
Profile
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 5 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.