Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

After installing ntfs-3g I have an option in nautilus to mount a Windows directory but I need to give root password. While I have no objection to giving root password I would prefer to be restricted to permission of corresponding Windows user (i.e. disallowing modification of system files). Is is easily achievable or do I need to post feature request?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

There IS a way to recognize Windows permissions on a ntfs-3g mount. You have to create a user-mapping file. See here.

This can be done from within Linux too, with the ntfs-3g.usermap utility. See the manual pages for mount.ntfs-3g and ntfs-3g.usermap. (I use Fedora 14.)

EDIT: I don't know what effect enabling this will have on Nautilus' mount feature. Me, I like to mount the partitions in /etc/fstab and leave it at that.

share|improve this answer
1  
It uses default i.e. .NTFS-3G/UserMapping with respective to NTFS partition. –  Maciej Piechotka Mar 6 '11 at 1:25

Disclaimer: I did not try this, so it may or may not work; I don't have an NTFS volume around.

Mount the whole FS with permissions that prevent target users from reading it.

Mount a directory of the resulting tree at an accessible mount point with mount --bind and subsequent mount --o remount with different uid and umaks that allow target users to read it.

share|improve this answer
    
I meant rather a automated solution. I rarely access the NTFS partition (since I hardly have anything on it - however I sometimes need to use Windows). –  Maciej Piechotka Feb 26 '11 at 17:40
    
If you are only interested in the same NTFS folders every time, e.g. 'Documents and Settings', you can wrap this logic into a simple script, or even an udev script if your NTFS drives are portable. –  9000 Feb 26 '11 at 17:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.