Hi all,
Most of the time I administer Redhat server. However, recently I spend more 
and more time exploring Opensuse.

There's one thing that I don't get it yet regarding sgid and umask in 
Opensuse.

In RH, when I create a directory say 'test', chmod it 3770. It will look like 
this:
drwxrws--T 2 root sales 4096 2007-05-23 08:16 test
Then, when I create a file inside the directory, it will have permission like 
this:
-rw-rw-r-- 1 geecko sales 4 2007-05-23 09:14 filegeecko (notice the 
rw-rw-r--).

I do the same in Opensuse. But, the file created in the directory have the 
permission:
-rw-r--r-- 1 geecko sales 4 2007-05-23 09:17 filegeecko (notice the 
rw-r--r--). This permission makes other user in sales group cannot edit 
geecko's file. User geecko has to specifically set the permission to 664 on 
the file.

How do I achive the default umask inhereted from the parent directory? I read 
some suggestions from google to adjust the global default umask, but I think 
it's a bit risky, or is it the only way?

Thank you very much.
-- 
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial 
http://linux2.arinet.org
9:32am up 1:25, 2.6.18.2-34-default GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org

Attachment: pgpuXgOrtqX0l.pgp
Description: PGP signature

Reply via email to