SlimChances;196866 Wrote:
> Also below is the fstab file:
> (snip)
> # /dev/sda5
> UUID=566C0AE26C0ABD2D /media/sda5 ntfs
> defaults,nls=utf8,umask=007,gid=46 0 1
>
Try changing the umask to 222 (this will allow all users to read the
files and list directory contents, but deny write access to everyone,
which you should do with ntfs)
The way the umask works is:
- the first number refers to the owner of the file
- the second number refers to members of the file's group
- the third number refers to everyone else ("world")
Normal file permissions are as follows:
- 4 = read
- 2 = write
- 1 = execute (file), or list contents (directory)
So to make a folder & its contents readable and browsable by everyone,
but not writable by anyone, you'd want permissions of 555 (ie 4+1 for
user/group/world)
Now, the trick is that the umask works in the opposite direction - it
tells the filesystem what people AREN'T allowed to do. You need to
subtract the umask from 777 to get the final permissions. So your umask
of 007 means:
- 777 - 007 = 770 = user and group have full permissions (7=4+2+1), but
world has no access
Slimserver is probably running as the user "slimserver", and is thus
considered to be "world" by the filesystem. Therefore I suggest
changing the umask to 222, which would give final permissions of
777-222=555, which enables everyone to have access, but denies write
access to everyone.
--
bukharin
------------------------------------------------------------------------
bukharin's Profile: http://forums.slimdevices.com/member.php?userid=10859
View this thread: http://forums.slimdevices.com/showthread.php?t=34651
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix