Subject: Re: Umask Question
To: None <jeffrey@jeffreyf.net>
From: SAR <s_a_r_ieee@cox.net>
List: netbsd-help
Date: 05/27/2002 20:10:35
On Mon, 27 May 2002 20:06:08 -0700
SAR <s_a_r_ieee@cox.net> wrote:
> On Mon, 27 May 2002 22:40:58 -0400 (EDT)
> Jeff Flowers <jeffrey@jeffreyf.net> wrote:
>
> > I was wondering if anyone could explain how to set the default umask
> > for a particular user? The umask man page does not tell me how and
> > apropos doesn't turn up anything else.
>
> Easy, you set it in the user's login script. For example, I use Korn shell.
> I set mine in my .kshrc file. For example:
>
> umask 077
Uh, I was a bit sloppy. The .kshrc file is not a login file, it's an environment file, which is sourced by my login file (.profile) at login time, and every time a sub-shell is created. Sorry about the sloppyness.
SAR
sar@computer.org