Fedora Linux Support Community & Resources Center
  #1  
Old 11th April 2012, 12:37 AM
japettyjohn Offline
Registered User
 
Join Date: Jul 2011
Posts: 6
linuxchrome
NTFS permissions for other users

I have secondary SATA drive in my machine with NTFS on it (from use with Windows Vista). I have had this mounted with FUSE with no issues. But now I'm moving my MySQL data dir onto so I need another user to have read/write to it, but no mounts options I've tried as root have changed anything on the permissions which don't allow non-owners to read/write anything.

The permissions in the mount are:
drwx------ 1 ic ic for directories, -rw------- for files.

The entry in /proc/mounts shows:

/dev/sdc1/ /mnt/big fuseblk rw,relatime,user_id=0,grou_id=0,default_permission s,allow_other,blksize=4096 0 0

I've tried the -o umask=0 and 0222 options but it always mounts exactly the same.

I'm using Fedora 16 with the latest updates as of 10 April.

Any suggestions are welcome.

- James
Reply With Quote
  #2  
Old 11th April 2012, 02:10 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,772
linuxfirefox
Re: NTFS permissions for other users

I didn't think NTFS supported more than one user.

If you are going to be using this disk for MySQL data, it really really should be a native filesystem. Any of them would work better than NTFS, if nothing but avoiding the fragmentation problems.

I suggest Ext4 as the most stable large capable filesystem at the present time.
Reply With Quote
  #3  
Old 11th April 2012, 02:44 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: NTFS permissions for other users

Do you have user_allow_other in your /etc/fuse.conf file?
__________________
======
Doug G
======
Reply With Quote
  #4  
Old 11th April 2012, 01:11 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,772
linuxfirefox
Re: NTFS permissions for other users

That only allows non-root to mount the thing, not concurrent access.

You can get concurrent access, but only by opening up either group or world access... and that defeats the purpose of security as far as a database goes (also needs "allow_other" for the fuse configuration)

I don't use this, as there is a lot of security issues here.

Last edited by jpollard; 11th April 2012 at 01:14 PM.
Reply With Quote
  #5  
Old 11th April 2012, 06:47 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 31
Posts: 2,750
linuxfirefox
Re: NTFS permissions for other users

According to "man mount.ntfs-3g", you can create a mapping between Linux and Windows user IDs.

I don't use NTFS (no Windows installed), but man-pages for the NTFS-3g commands might help.
Reply With Quote
  #6  
Old 11th April 2012, 09:11 PM
japettyjohn Offline
Registered User
 
Join Date: Jul 2011
Posts: 6
linuxchrome
Re: NTFS permissions for other users

Thanks for all the replies, very appreciated.

As to the whole NTFS is a bad idea - I couldn't agree more, this is local database that is not used by others. Just happens to be I've gotten it up to 40gigs utilized and had to move it off my primary drive which ran out of space. And it's a single file InnoDB so none of the space can be reclaimed short of a dump and reload.

As to the permissions into NTFS itself - I don't know why I can't get this to mount without FUSE butting in. While all the options that I need to use are obviously there per the manual nothing takes effect when I issue the commands. I did uncomment user_allow_other after it was mentioned. Made no change.

I'm doing a workaround right now by moving the files again to another drive I have some free space off with a new ext 4 partition (draw being I have around 10 gigs free instead of 700gigs and the drive only added for temp files and swap - definitely not an ideal disk to have the source data on).
__________________
- J
Reply With Quote
  #7  
Old 12th April 2012, 03:14 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,772
linuxfirefox
Re: NTFS permissions for other users

NTFS is implemented in userspace. FUSE is used to implement NTFS, so FUSE configurations have to get involved.
Reply With Quote
  #8  
Old 12th April 2012, 06:43 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 31
Posts: 2,750
linuxfirefox
Re: NTFS permissions for other users

Quote:
Originally Posted by jpollard View Post
NTFS is implemented in userspace.
Exactly.

There is an in-kernel NTFS driver, but it's read-only by default (its write capabilities are limited and unsafe). Having the implementation in user-space also allows greater flexibility, such as the user-mapping I mentioned.
Reply With Quote
  #9  
Old 13th April 2012, 04:01 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,772
linuxfirefox
Re: NTFS permissions for other users

As I recall, the in-kernel version was for an old version of NTFS, and never got the journaling fully compatible, leading to the failures in the I/O when switching back and forth with Windows.

It also avoids potential MS lawsuits.

Last edited by jpollard; 13th April 2012 at 04:04 PM.
Reply With Quote
Reply

Tags
fuseblk, ntfs, permissions, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions question: no writing by users even when users in group with rwx on object Kholdstate Using Fedora 5 29th July 2009 04:05 PM
ntfs permissions tankcntdrv55 Hardware & Laptops 8 14th January 2006 10:21 PM
NTFS Permissions sucafish Using Fedora 1 27th July 2005 10:42 PM
NTFS Permissions arl Using Fedora 1 14th July 2005 01:04 AM
NTFS Permissions in FC2 mustangfanatic EOL (End Of Life) Versions 4 16th October 2004 10:12 AM


Current GMT-time: 23:54 (Wednesday, 23-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat