Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 1996 13:29:13 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        "Francisco Reyes" <reyes01@ibm.net>
Cc:        "FreeBSd Chat list" <chat@freebsd.org>
Subject:   Why no umask in dot-profile?
Message-ID:  <199608291129.NAA00775@campa.panke.de>
In-Reply-To: <199608290233.CAA27097@pop01.ny.us.ibm.net>
References:  <199608290233.CAA27097@pop01.ny.us.ibm.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608291129.NAA00775>