Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't change directory permission on ntfs volume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Fri Jul 17, 2009 11:44 pm    Post subject: Can't change directory permission on ntfs volume Reply with quote

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
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Sat Jul 18, 2009 12:03 am    Post subject: Reply with quote

ntfs in kernel support only rw in root mode
try ntfs-3g
_________________
"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
View user's profile Send private message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Sat Jul 18, 2009 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message
twork
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 185

PostPosted: Sat Jul 18, 2009 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Sat Jul 18, 2009 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Tue Jul 21, 2009 3:45 am    Post subject: Reply with quote

I got it, I just needed the correct umask.

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum