Re: [opensuse] Re: Wanna umask inhereted from parent directory
- From: Verner Kjærsgaard <vk@xxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 09:57:49 +0200
Onsdag 23 maj 2007 09:49 skrev Joachim Schrod:
Fajar Priyanto wrote:
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?
Phil answered your question how to enable the RH behavior by
setting the umask globally.
If you don't want to do this, there is the possibility to use
access control lists (ACLs); the default ACL determines the access
right of newly created files.
I don't know if the global umask setting is sufficient for you, so
I stop here with the explanation; ask, if you need more info.
But note: both methods don't support changing the access rights of
files that are created elsewhere, e.g., in a personal directory,
and moved to the shared directory. (That's because moving doesn't
create a file, it just changes the directory entry. (Reality is
even more complex, but hopefully you'll see what I mean.))
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany
Hi,
perhaps I don't understand your problem, but could you not just put
umask 002 (or whatever you desire) into
.bashrc in the /home/geecko directory?
--
-------------------------------------------------------------------------
Med venlig hilsen/Best regards
Verner Kjærsgaard
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- [opensuse] Re: Wanna umask inhereted from parent directory
- From: Joachim Schrod
- [opensuse] Re: Wanna umask inhereted from parent directory
- Prev by Date: [opensuse] Re: Wanna umask inhereted from parent directory
- Next by Date: Re: [opensuse] User loses GNOME desktop (SuSE 10.0)
- Previous by thread: [opensuse] Re: Wanna umask inhereted from parent directory
- Next by thread: Re: [opensuse] Re: Wanna umask inhereted from parent directory
- Index(es):
Relevant Pages
|
Loading