Glad to hear it. I explained a little about umasks in an earlier
thread:
http://forums.slimdevices.com/showpost.php?p=196941&postcount=11

I'll cut, paste and update the relevant bits:

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 = r = read
- 2 = w = write
- 1 = x = execute (file), or list contents (directory)

So to make a folder & its contents readable and browsable by everyone,
but only writable by the owner, you'd want permissions of 755 (ie 4+2+1
for the owner, and 4+1 for group and world). If you did "ls -l", the 755
would show up as rwxr-xr-x.

You need to understand the above before you think about umasks.

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 022 means:
777 - 022 = 755 = rwxr-xr-x = user has full permissions (7=4+2+1), but
group and world are not allowed to write/modify files. This is
generally what you'd want for a setup such as yours.

In my opinion, 022 should be the default umask for external drives in
Ubuntu. It's just too hard for new users otherwise. In any case, what
you need to do now is configure Ubuntu so that its default umask for
external drives is indeed 022. If it's anything like my Gentoo system,
this would be in the ivman configuration (ivman is what actually mounts
the devices on behalf of the user).

On my system, the relevant config file is at:
/etc/ivman/IvmConfigBase.xml

In that file, there's the following:
<!--
<ivm:Option name="umask" value="002" />
-->

If it's the same on your system, try uncommenting that line (by
removing the <!-- and -->) and change the value to 022. You'd then need
to remount the drive, and hopefully the permissions would be correct.


-- 
bukharin
------------------------------------------------------------------------
bukharin's Profile: http://forums.slimdevices.com/member.php?userid=10859
View this thread: http://forums.slimdevices.com/showthread.php?t=35254

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to