View previous topic :: View next topic |
Author |
Message |
SeaHag n00b
Joined: 10 Jul 2009 Posts: 32
|
Posted: Fri Jul 17, 2009 11:44 pm Post subject: Can't change directory permission on ntfs volume |
|
|
I'm dual-booting with windows and mount an ntfs partition in fstab like this:
Code: |
/dev/sda3 /Data ntfs rw 0 0
|
When I boot to Gentoo permissions look like this;
Code: |
dr-x------ 1 root root 20480 Jul 16 21:25 Data
|
My users can't see any of the files and if I try to change permissions as root i get this:
Code: |
chmod 544 /Data
chmod: changing permissions of `/Data': Read-only file system
|
and the permissions are still the same, unchanged.
I'm really tired of struggling with my PC. How can I get users to be able to simply read some files? jeez.. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
|
Back to top |
|
|
SeaHag n00b
Joined: 10 Jul 2009 Posts: 32
|
Posted: Sat Jul 18, 2009 2:49 am Post subject: |
|
|
Quote: |
ntfs in kernel support only rw in root mode
|
I don't need my users to write to it just read. Can't they just do that? |
|
Back to top |
|
|
twork Apprentice
Joined: 28 Jul 2006 Posts: 185
|
Posted: Sat Jul 18, 2009 5:57 am Post subject: |
|
|
I'm not using ntfs, but in other cases where Linux mounts non-POSIX filesystems (where Unixisms like user:group ownership and the rwx permission idiom don't apply), it's common to have ownership and permissions set globally for the whole filesystem at mount time.
Aha, here we go. From the mount manpage, in the ntfs section:
Code: | uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is
given in octal. By default, the files are owned by root and not
readable by somebody else. |
So I'd fool around with the options column in your '/etc/fstab', or if you're mounting by hand, passing those fields as arguments to the '-o' option.
What you don't get is any way to vary the ownership and permissions within the NTFS volume, since there's no way to express Unix filesystem semantics in NTFS, and vice versa. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Sat Jul 18, 2009 7:29 am Post subject: |
|
|
SeaHag wrote: | Quote: |
ntfs in kernel support only rw in root mode
|
I don't need my users to write to it just read. Can't they just do that? |
they can, change mount point permision before you mount that partition _________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg |
|
Back to top |
|
|
SeaHag n00b
Joined: 10 Jul 2009 Posts: 32
|
Posted: Tue Jul 21, 2009 3:45 am Post subject: |
|
|
I got it, I just needed the correct umask.
thanks |
|
Back to top |
|
|
|