[opensuse] Re: Wanna umask inhereted from parent directory
James Knott wrote:
James Knott wrote:
Fajar Priyanto wrote:
Hi Joachim, Do you know where I can set the umask globally in Suse?
/etc/initscript
Also /etc/login.defs
James, I don't know about 10.2, but in 10.0 /etc/initscript does not exist. Changing UMASK in /etc/login.defs does NOT change the umask globally. It just changes the access rights of newly created home directories (by useradd, cf. the comments above the UMASK entry in that file). The umask in SUSE 10.0 is set globally in /etc/profile. To change it, one adds a file with "umask 002" to /etc/profile.d/, or one creates /etc/profile.local. I dunno about 10.2, maybe there /etc/initscripts changes the situation. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joachim Schrod wrote:
James Knott wrote:
James Knott wrote:
Fajar Priyanto wrote:
Hi Joachim, Do you know where I can set the umask globally in Suse?
/etc/initscript
Also /etc/login.defs
James, I don't know about 10.2, but in 10.0 /etc/initscript does not exist.
Changing UMASK in /etc/login.defs does NOT change the umask globally. It just changes the access rights of newly created home directories (by useradd, cf. the comments above the UMASK entry in that file).
The umask in SUSE 10.0 is set globally in /etc/profile. To change it, one adds a file with "umask 002" to /etc/profile.d/, or one creates /etc/profile.local.
I dunno about 10.2, maybe there /etc/initscripts changes the situation.
Joachim
Initscripts is in 10.2. However, I know of nothing that can go through a file system and change all the permission bits, other than a script that crawls through the file system. As you mentioned, the umask setting, no matter where it is, will only affect new directories. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
James Knott
-
Joachim Schrod