[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sftp and umask



Not sure if you can do exactly what you asked, but you could put the
following in a script and run it once a day on the necessary /home
directory:

  find ./ -type d -exec chmod 775 {} \;
  find ./ -type f -exec chmod 664 {} \;
 
regards,
Robert

On Mon, 08 Nov 2004 16:05:00 +0100
Matthias Eichler <me-lists@kernzeit.com> wrote:

> Dear List,
> 
> we want to use sftp on our remote servers.
> as we are working with a group-right management
> for supporting individual user logins.
> 
> now we have the problem that umask is set correctly
> with a ssh login, but not with an sftp transfer.
> 
> How can I set the right umask (002 instead of 022)
> for sftp transfers automatically because I cant be
> sure that our "users" are doing the right stuff...
> 
> Thanks,
> 
> Matthias Eichler
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 



Reply to: