Re: openssh and umask
- From: "Richard E. Silverman" <res@xxxxxxxx>
- Date: 21 Feb 2006 22:16:19 -0500
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
.
- Follow-Ups:
- Re: openssh and umask
- From: grodenhi@xxxxxxxxx
- Re: openssh and umask
- References:
- openssh and umask
- From: grodenhi@xxxxxxxxx
- openssh and umask
- Prev by Date: openssh and umask
- Next by Date: Rsync problem
- Previous by thread: openssh and umask
- Next by thread: Re: openssh and umask
- Index(es):