Mailinglist Archive: opensuse (3441 mails)

< Previous Next >
Re: [opensuse] trying to figure out how to share a data drive
  • From: George Olson <grglsn765@xxxxxxxxx>
  • Date: Sat, 17 Jan 2009 20:59:29 +0800
  • Message-id: <4971D631.1000807@xxxxxxxxx>
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?

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups