Re: Maintaining file permissions with sftp
"Silvers, Timothy" <[email protected]> Fri, 11 Mar 2011 18:35:13 +0000
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Message-ID | <[email protected]> |
Roberto, There's nothing in the sftp man page. My preference is to use rsync if you = want to retain permissions. Use the -o and -g flags, or, -a but be aware th= at -a will perform a recursive sync if it finds a directory. Just check out= the man page. Tim On Mar 11, 2011, at 7:10 AM, Roberto wrote: > Hi, >=20 > when making a sftp file transfer, overwriting an existing file, is there = any way to preserve the permissions of the file? So, if the file had permis= sions like 664, to preserve them instead of overwriting them with any other= permission. >=20 > Thank you, >=20 > Roberto >=20 > PS: System setup: server is running OpenSSH 5.1p1, from Debian packages, = clients are running windows versions of sftp >=20 > --=20 > ----------------------------------------------------- > Marcos Roberto Greiner >=20 > Os otimistas acham que estamos no melhor dos mundos > Os pessimistas tem medo de que isto seja verdade > James Branch Cabell > ----------------------------------------------------- >=20