[scponly] sftp-server arguments
Kaleb Pederson
kaleb.pederson at gmail.com
Fri May 27 00:02:51 EDT 2011
I've added support for the umask option of the sftp-server.
--Kaleb
On Thu, May 12, 2011 at 7:54 AM, Kaleb Pederson
<kaleb.pederson at gmail.com> wrote:
> That option didn't exist before, so it wasn't allowed. I'll make the
> respective change to the source.
>
> Thanks.
>
> --Kaleb
>
> On Thu, May 12, 2011 at 7:44 AM, SCP Only <scponly at gmail.com> wrote:
>> 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
>>
>> _______________________________________________
>> scponly mailing list
>> scponly at lists.ccs.neu.edu
>> https://lists.ccs.neu.edu/bin/listinfo/scponly
>>
>>
>
More information about the scponly
mailing list