Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <d2f92e8b0502251437103f20cc@mail.gmail.com>
Date: Fri, 25 Feb 2005 16:37:59 -0600
From: Dori <slowpoke@gmail.com>
Reply-To: Dori <slowpoke@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Controlling permissions of scp files on Windows
In-Reply-To: <421FA672.C33CCBF2@dessent.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <d2f92e8b050225135336e3cab6@mail.gmail.com> <421FA672.C33CCBF2@dessent.net>
X-IsSubscribed: yes

On Fri, 25 Feb 2005 14:28:02 -0800, Brian Dessent <brian@dessent.net> wrote:
> Dori wrote:
> 
> > I am having a tough time figuring out how to automatically change the
> > permissions of files that are scp-ed over to a Windows 2003 Server
> > machine that's running Cygwin sshd. The files come out with
> > permissions of 644, and I need them to be 666. Is there a way to do
> > this without having to run a chmod on the files afterwards (even 664
> > if I can figure out how to have "everyone" be the group).
> 
> If they are 644 at the source machine then just use -p flag to scp,
> which preserves times and modes.

Yep, that works...a bit insecure at the source server which has more
liberal access than the destination one though.

thanks

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

