On Wednesday 26 November 2008 14.39.08 you wrote: > Hi! > > I have a setup: > > OpenBSD 4.4 > > /etc/ssh/sshd_config: > [..] > Match Group sftponly > ChrootDirectory %h > ForceCommand internal-sftp > PasswordAuthentication yes > > But, after login I need to set the umask for the session. > I can not use .ssh/rc because of ForceCommand, and I can not put this > to .ssh/environment (even if I've enabled PermitUserEnvironment), > because there is no such environment variable which would apply here. > > What can I do here? Any suggestions would be appreciated. > Just for the record... I had to create a new class in login.conf(5), eg.: sftponly, and specify the umask= parameter to it, and of course add the user to that class.
Daniel -- LEVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1

