Re: [opensuse] Re: Wanna umask inhereted from parent directory



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



Relevant Pages

  • Re: [SLE] Sometimes Linux makes me crazy.
    ... > there a site where I can learn more about security on Linux? ... The Unix / Linux concept of the "umask" is probably somewhat obscure, ... The value passed for this permission is typically "maximal" in the sense ... If you're working in a cooperative environment where groups are used to ...
    (SuSE)
  • Re: [SLE] Alert
    ... >>Randall Schulz ... > tell me the effect of doing an umask, as I'm not quite convinced what ... Every time a program creates a file, it specifies a set of permission ... it will usually use 0777 (read+write+execute for owner, ...
    (SuSE)
  • Re: Beginners Question about Bernoulli and Tanks
    ... >> fluid coming out of the hole. ... >> atmosphere that's pushing on the water there). ... > pressure under the surface is the sum of the pressure at the surface ... just like at the top of the tank. ...
    (sci.physics)
  • Re: umask?
    ... He said, for example, that would be umask 0. ... umask has nothing to do with the permission bits that get ... and the 'other' read, write, and execute flags. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (alt.os.linux.suse)
  • Re: newbee learning linux: how to allow write permission to user on mounted drives
    ... The manual page for mount says: ... I do understand that the umask of a process is used to ... *remove* bits from the permission mask when *creating* files and directories. ...
    (comp.os.linux.setup)

Loading