[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-chat
Subject:    Why no umask in dot-profile?
From:       Wolfram Schneider <wosch () cs ! tu-berlin ! de>
Date:       1996-08-29 11:29:13
[Download RAW message or body]

Francisco Reyes writes:
>I was looking at the the "dot" which are used as the basis for the
>files which get copied when a new user is created and noticed that
>the "dot-profile" did not have umask. Isn't this an advisable
>security measure?

The default umask is 022. No risk.

/usr/include/sys/param.h:
#define	CMASK	022		/* default file mask: S_IWGRP|S_IWOTH
*/

man 2 umask
     The default mask value is S_IWGRP|S_IWOTH (022, write access for the own-
     er only).	Child processes inherit the mask of the calling process.

Wolfram

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic