[scponly] setting umask for new files

Ralf Durkee rd at rd1.net
Thu Oct 28 07:51:16 EDT 2004


At 09:08 AM 10/28/2004 +0200, Bernd Stroessenreuther wrote:
>Hello everybody out there,
>
>I'm just testing scponly as an secure replacement for ftp transfers.
>Until now it works great.
>Just one question is still open:
>How can I set the umask of new files which are uploaded by the users via
>sftp/scp?
>By default on my server they get permissions of 644 which is a umask of 022,
>but I need them to be created with different rights, e. g. 664 or umask 002.
>
>Freundliche Gruesse / Best regards
>    Bernd Stroessenreuther
There's a patch for the sftp-server, so it can set the umask. I would 
recommend disabling scp and set up scponly as using sftp only.

http://sftplogging.sourceforge.net/


-- Ralf Durkee, CISSP, GSEC, GCIH
Principal Consultant
585-624-9551
http://rd1.net




More information about the scponly mailing list