SFTP and umask

View: New views
3 Messages — Rating Filter:   Alert me  

SFTP and umask

by Drew Boone :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

The umask for sftp on my server appears to be 066, which doesn't  
allow httpd to read the files for web service. Does any one know how  
to change the umask for sftp?

I have scoured the web and this list for help. I have noticed a patch  
available that adds some functionality, but I would rather not have  
to uninstall and compile OpenSSH myself.

RHEL ES v 4
OpenSSH 3.9

Drew Boone
waboone@...


Re: SFTP and umask

by Derek Martin :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Tue, May 22, 2007 at 04:43:53PM -0600, Drew Boone wrote:
> The umask for sftp on my server appears to be 066, which doesn't  
> allow httpd to read the files for web service. Does any one know how  
> to change the umask for sftp?

You can use rssh:

http://www.pizzashack.org/rssh/

It may impose limitations you don't want to impose, but it will allow
you to set the umask.

--
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D



attachment0 (196 bytes) Download Attachment

Re: SFTP and umask

by nrk65 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi
Did you get any solution on changing the umask for files you are transferring thru sftp

Thanks in advance

Ramesh
Drew Boone wrote:
The umask for sftp on my server appears to be 066, which doesn't  
allow httpd to read the files for web service. Does any one know how  
to change the umask for sftp?

I have scoured the web and this list for help. I have noticed a patch  
available that adds some functionality, but I would rather not have  
to uninstall and compile OpenSSH myself.

RHEL ES v 4
OpenSSH 3.9

Drew Boone
waboone@douloscorp.com