Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sftp and default umask questions?

0 views
Skip to first unread message

Jason Price

unread,
May 20, 2002, 9:21:49 PM5/20/02
to
I'm currently using OpenSSH_3.1p1 on a Solaris 8 machine.

I have users that have dummyshells like below:
someuser:x:900:366:User:/dir/upload/dir1:/usr/local/libexec/sftp-server

The users are using VanDyke SecureFX 1.9.5 and 2.0 to upload files via
SFTP.

The problem is when a user uploads a file from their Windows machine
it gives the permissions of 600.

Due to other scripts that get run against the upload areas, 600 is not
enough. I would like to be able to have the permissions get uploaded
as 640 atleast, and 660 would be perfect.
Is there any way to make this happen ?

If this doesn't work, my only other solution seems to be having them
use F-Secure or SSH Communications version of SFTP client that
supports Default UMASK uploads.

Thanks,

Jason

Richard E. Silverman

unread,
May 23, 2002, 12:46:07 PM5/23/02
to

Make the "shell" a script which first sets the umask as you want it, then
execs sftp-server.

--
Richard Silverman
sl...@shore.net

0 new messages