I'm looking at the umask option in sshd_config for the sftp subsystem in
sshd from the dec 27 snapshot of current for i386. According to the man
page for sftp-server '-u' ought to set the umask for the sftp session.
I'd like to use a specific umask in conjunction with the ChrootDirectory
directive so this might be easiest with the internal-sftp method.
However, I'm having trouble getting the syntax correct with either sftp
subsystem. Neither of the tries below seem to affect the umask:
Subsystem sftp /usr/libexec/sftp-server -u 077
Subsystem sftp /usr/libexec/sftp-server -u 0077
Subsystem sftp internal-sftp -u 077
The middle try gives the following in sshd's logs:
debug1: session_input_channel_req: session 0 req subsystem
subsystem request for sftp
debug1: subsystem: exec() /usr/libexec/sftp-server -u 0077
What is the correct way to set the umask for the internal-sftp subsystem?
/Lars