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: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
