[scponly] sftp-server arguments
SCP Only
scponly at gmail.com
Thu May 12 10:44:04 EDT 2011
Newer versions of OpenSSH sftp-server support the "-u" option for setting
the umask.
However, when trying this with scponly, it gave me some errors along the
lines of
May 11 17:22:10 server scponly[24102]: an unrecognized option was
encountered while processing cmd /usr/libexec/openssh/sftp-
server (arg was <NULL>) (username: testuser(502), IP/port: 192.168.1.83
54666 22))
May 11 17:22:10 server scponly[24102]: requested command
(/usr/libexec/openssh/sftp-server -f LOCAL6 -l VERBOSE -u 0002) tried to use
disallowed argument (username: testuser(502), IP/port: 192.168.1.83 54666
22))
I was able to solve this by modifying scponly.c and adding the option to the
allowed arguments
#ifdef ENABLE_SFTP
{ PROG_SFTP_SERVER, 1,
1, NULL,
"f:l:u:", empty_longopts },
#endif
Is there a reason this is disallowed by default?
- Amir
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the scponly
mailing list