On Mon, May 04, 2020 at 04:23:44PM +0100, Stuart Henderson wrote: > On 2020/05/04 15:01, Doug Moss wrote: > > For OpenBSD 6.6, amd64 > > in the daily script to check security: > > /usr/libexec/security > > > > at line 248 for checking if the umask is set: > > my @list = qw(/etc/profile /root/.profile); > > > > shouldn't that be instead: > > my @list = qw(/.profile /root/.profile); > > > > I think /etc/profile does not exist, and /.profile is the default one. > > > > I'm not sure in which situations /.profile would be used, but /etc/profile > is definitely used if it exists. > > ksh documentation says $HOME/.profile and /etc/profile. >
Single user mode uses /.profile for shell initialization. init(8) spawns a login shell by prepending '-' to the basename and HOME is unset.
