Re: openssh and umask




I have several users that I'd like to set their umask to 002. I know I
could write a wrapper to the sftp-server binary and do this globally,
but I only want this for certain users. I've read about the
~HOME/.ssh/environment file. I've included this file in my test user's
home directory and have the file say umask 002 (I also tried
umask=002), but this still does no good. I double checked that
sshd_config has PermitUserEnvironment set to yes (and I restarted
sshd). What is the format of the environment file? I've only seen it
has to be VARS=$value. Anyone have an example? Does the file need to
have certain permissions? Thanks in advance!!

The umask is not an environment variable; it is a property of the process
and has to be set by a system call.

--
Richard Silverman
res@xxxxxxxx

.