Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sshd with umask 1

Status
Not open for further replies.

womp

Technical User
Apr 6, 2001
105
US
Does anyone know how to sftp files/directories from a Windows box to a Linux box keeping the permissions of the files/directories to: files 660 directories 770?
That is, without, having to write a script changing permissions seperately?
 

If it's in interactive mode you could use the lumask command.

See tha man file for sftp for more details.

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top