Mailinglist Archive: opensuse (2876 mails)
| < Previous | Next > |
[opensuse] Wanna umask inhereted from parent directory
- From: Fajar Priyanto <fajarpri@xxxxxxxxxx>
- Date: Wed, 23 May 2007 10:54:02 +0700
- Message-id: <200705231054.04356.fajarpri@xxxxxxxxxx>
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
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
| < Previous | Next > |