Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Umask
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 29th April 00:24
devin stewart
External User
 
Posts: 1
Default Umask



Where in Slackware is the umask set????

I have seen in the past that it is suggested that a umask 022 be set at
the begining of each rc. script.

Is this still an issue. Why or why not???

Devin
  Reply With Quote


  sponsored links


2 29th April 09:59
kaukasoi
External User
 
Posts: 1
Default Umask



As the first thing, init sets umask(022). It's hardcoded in the init binary.
Maybe you remember something like SunOS 4 which created world writable wtmp
because of umask 0.
  Reply With Quote
3 29th April 10:00
menno duursma
External User
 
Posts: 1
Default Umask


On my boxen that might be edited. To find out, like so:
grep -r -i umask /etc 2>/dev/null

Might be a good idee, though it defaults to that.


I read something about that, some time ago. I don't think this post was
the one i read then. However it basically explains the same thing: http://lists.suse.com/archive/suse-security/2001-Jun/0197.html


Well, that may be. However it's set in kernel (2.4.24) as well:

$ grep -A5 INIT_FS ./include/linux/fs_struct.h
#define INIT_FS { \
ATOMIC_INIT(1), \
RW_LOCK_UNLOCKED, \
0022, \
NULL, NULL, NULL, NULL, NULL, NULL \ }

Haven't worked with SunOS 4.x lately, didn't know that though. Thanks.

--
-Menno.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666