X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Wh8g61Tr3JzVwC8F lcty/KLVInQ46gTbmgJ466CndHyrNqOQd1w5kpUxYGIfMxK6/XTqWdLrn4XL2oVN 09MQHm34pMFlqsyPd/aKqFSsu58gdL2dB+FfcTRCAXwzzCZqGqwu0UDWRTOB1DmP esapGGqxL08PyQ2GN+GWQQAM6o4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=xTitqf1GEaauByuQ8oPpfO pAtI0=; b=Ni86IeA9VVRraQI+1r5hok+Qwd9RrsguTNF3kMa8TnRXjv2In6HBMh V51tsNa67B1+SuUUjf49fo1XKql8z+oNZL4Y3uwwR8affSD/i7BRzSSbyH/EtZk3 lIyKtvVwKmsFsg3Ps3slsMXEMQdJ/QpG4NWPPWMP3anFyLymwQSWQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=moss, H*RU:sk:mailsrv, Moss, H*r:sk:mailsrv X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: when I try to open file with another user on CYGWIN , I get access denied message References: <2e1a331d-18e5-4dcc-0db6-257eeea2640a AT gmx DOT com> <1087bdfc-567a-88b4-881e-9a7e70c58b94 AT gmx DOT com> <8a3bd30e-17b3-41e4-884b-1c79f33dc9e4 AT gmx DOT com> To: cygwin AT cygwin DOT com From: Eliot Moss Message-ID: <4efb16ad-f0dc-82a5-55af-9860694acce8@cs.umass.edu> Date: Wed, 17 May 2017 10:02:16 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <8a3bd30e-17b3-41e4-884b-1c79f33dc9e4@gmx.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 5/17/2017 9:45 AM, Alex wrote: > On 16/05/2017 20:22, Dan Kegel wrote: >> On Tue, May 16, 2017 at 7:44 AM, Alex wrote: >>>> Did you try >>>> chmod 755 foo.dat >>>> on the file (assuming it's named foo.dat)? >>> >>> Yes I did , but I can access only the current files. If they send new file >>> next time, it won't get this setup so not possible to open. >> >> Just add the chmod in your script. >> > Hi Dan > Could you please tell me how can I chmod to script , I don't know how to do it > Thanks sftp has a chmod command that change the access modes of the remote file. Add a chmod after the command that copies the file over. chmod and the meaning of the modes are standard Unix things, and "man chmod" for the command line chmod (not the OS call) will explain it somewhat (the syntax in sftp is probably more limited). HTH -- Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple