如何設 sftp 的umask.?



贊助商連結


tonypai
2001-12-25, 10:18 AM
in wu-ftpd we modify /etc/xinetd.d/wu-ftpd
we can use
server_args = -l -a -u 046
to change the upload umask.
How could I do this in the sftp?
I didn't see any way to set in ssh2_config.
Thank you.

[root@mail xinetd.d]# cat wu-ftpd
# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
disable = yes
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}