Howto: set permissions on a ntfs drive.
How do I set permissions when mounting a ntfs drive(which is dead set on being read-only).
All my mp3s are on my windows drive and i can only get there as root which is really annoying... Keep in mind that I'm a newbie so if it's very complicated you don't have to bother. |
NTFS support is read only. Do you just want to be able to access the drive as a normal user? If so you'll probably just need to chmod whatever directory you are using as a mount point (say /mnt/ntfsDrive) to 755. (so to follow the example - chmod 755 /mnt/ntfsDrive && mount /dev/hdXN /mnt/ntfsDrive)
HTH Jamie... |
That's just it.. I can't because it's read-only.
|
Quote:
there's a lot of information abuot NTFS on this site, try a little search |
You have to edit the way you mount it to read it from a regular user. I am going to assume Windows is on the first drive
mount -t ntfs /dev/hda1 /mnt/windows -r -o umask=022 That usually works when mounting it. For the fstab, I usually put in: Code:
/dev/hda1 /mnt/windows ntfs ro,umask=000 0 0 |
If that doesn't work try using umask=0000 (an extra leading zero for the directory bits). After you modify /etc/fstab then you will want to
umount /dev/hda1 mount -a This will effect the changes that you made by remounting your windows directory. If you want to be more careful you can disable write so that you don't mess up your data (I do this cuz im paranoid) by using umask=0222. Hope this helps. |
Quote:
|
Let me see if I can shed a little light on this subject...
*cracks his knuckles and begins to type...*
First off, you have to have NTFS file system write support in your kernel. Second, read the following. Now, this is taken from the configuration for choosing NTFS file system write support in kernel configuration: Quote:
Code:
/dev/hdxn /dirname ntfs uid=0,gid=100,umask=002 1 0 (/dirname being the folder you want to mount the partition under) But, as it says above, use the fix utility how it says to use it! You'll save yourself a lot of trouble. :) That should give you a good starting, if nothing else. Good luck! :) |
From what I've read, the umask option in fstab is the only way to mount the drive in a state that you will be able to make permission changes, and have them actually do anything. The state in which a FAT or NTFS drive mounts is determined by microsoft. It has a default setting. Microsoft handles drives a bit differently, and since I'm not qualified to go into detail, I won't. When you mount the drive in Linux, with the umask bits =0000 , you are un-doing the default state, and setting the drive to a neutral state . Then you can change permissions on the drive with 'chmod 555' in this case, so that you can read and execute on the NTFS drive. On my home network, if I were on my Windows 98 box or WinXP box, I could not even navigate FAT volumes which were hosted by my Linux box through Samba.And no attempt to change permissions had any effect at all. However, when I changed the umask bits, that changed everything. I could change the permissions as I see fit, AND I was now allowed to navigate these volumes with my Windows boxes, and do anything that the permissions granted. In my case 'chmod 777' . I don't give a shat about security, it's only my home network. Anyway, you have read my interpretation of what I have read, and my results in my situation. JC |
All times are GMT -5. The time now is 08:48 AM. |