X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: sftp removing writable bit Date: Thu, 13 Sep 2007 08:53:25 -0700 Lines: 41 Message-ID: References: <46E7FB17 DOT 3030904 AT scranton DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Thorsten Kampe wrote: > * Andrew DeFaria (Wed, 12 Sep 2007 22:49:49 -0700) >> Thorsten Kampe wrote: >>> * Andrew DeFaria (Wed, 12 Sep 2007 08:48:58 -0700) >>>> John J. Culkin wrote: >>>>> I am seeing an issue with Cygwin's sftp. It seems that after I upload >>>>> a file that overwrites an existing file, the writable bit is removed. >>>>> This prevents me from uploading a new version of the file. >>>>> >>>>> The files are owned by the SFTP user. >>>>> >>>>> Any Ideas? >>>> No ideas but a question. What is sftp good for? I mean what does it >>>> have >>>> over say... scp? >>> You can use your favourite FTP client, right?! >> As opposed to just typing scp? I still don't get it... > > Yes. Some clients (by coincidence my favourite ones) like yafc, lftp > and SpeedCommander do sftp. Lftp even does fish (which I think is > "pure" scp/ssh). I guess I'm saying is that if yafc, lftp and SpeedCommander can do sftp then scp will also work (no?). Conceptually I would think "copy this file" and relate that to a "cp" of sorts before an "ftp" of sorts. I use ncftp, when ftp is the only way, which doesn't do sftp (I think). Although ncftp can use ftp to copy a file or set of files in one command many ftp clients can't (perhaps yafc, lftp and SpeedCommander can do this - I don't know). What are the chances that those other sftp type clients are available on say the Solaris or Linux clients/servers of a client I'm working for? Much less than the possibility of scp being present. And I'm not necessarily against the idea of "well go out and get a working copy of these programs" but often clients do not give consultants that privilege. To each his own - we all have our own reasons for our picks of favorites (even if sometimes the reasons are not very well thought out). -- Andrew DeFaria Future historians will be able to study at the Gerald Ford Library; the Jimmy Carter Library; the Ronald Reagan Library and the Bill Clinton Adult Bookstore. -- 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/