On Saturday 17 January 2009 06:59:29 am George Olson wrote:
Joe Morris wrote:
On 01/17/2009 05:20 PM, George Olson wrote:
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite:
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part6 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part7 /home ext3 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
OK, here is the problem. Change the 2 lines above (starting with /dev, watch the word wrap) by changing the fmask and dmask values. dmask is the directory permissions, fmask is the file permissions. If you only want write access to your data partition, only change the second line. They are written in octal, subtracting from the mask value of 111. So zero, would mean 111, i.e read, write, execute. A mask of 022 would give rwxr-xr-x. Make your mask 002, to give rwxrwxr-x. So change the fmask and dmask to 002. To make the change immediately effective (so you do not need to reboot), you would need to enter this command as root, mount -o remount /Windows/D (and mount -o remount /Windows/C if you also change it). The you should see that you have write access. You could see that by ls -l /Windows/D, and it should be a bunch of rwxrwxr-x. HTH.
/one question - I tried to change the fmask and dmask values in Kwrite, but it would not save because I don't have access permission. How do I set root level access to be able to save in Kwrite, or is there a different editor I should use through the konsole to do that?
It seems that I have no big need for anything windows, so after your post I was looking my partition and it was set with fmask=133 and dmask=022 which means everything is read only. The correct values to be able to write there are: fmask=113 gives permissions rw-rw-r-- (owner group other) dmask=002 gives permissions rwxrwxr-x (owner group other) r read w write x execute for files, enter for directories I keep windows files without execute bit. It looks all much better in a file manager. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org