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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=BG7x+sZ/s9ItYrJF kxiZOgopYBWJKYbAx6d+l/+DiPJRxJV0v97xmrkHdyCH30InKKa3KHCvguyRKtkI ihlC5kMwDOvF0NOFPpsTOE+nudILmSSHieenShb6ib7Wt61zolozKna7H/Od5N0E CfTNWe0SkIbu7kVGcMxAMX6ro18= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=9fsVHj53RDfRPGNrC/wPwA hSaxQ=; b=Gq5CF4DyPpujTnknBWheaBIubUGTETZvJlLiWbcrUV8klfR/1eupG9 Jg/3ztq9BfKkQtxhDEiA6WKfOyMUwBrc3KObQkojgV42KpDJA1JHBGNH8jj8Wc+K s4hzytjtJdDPHyRzRlSeCMA1hV3N4Ihol5gNyU5aqy87Ifs6j0MYE= 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=-7.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=rx, partner, viruses, UD:avast.com X-HELO: mout.gmx.net Subject: Re: when I try to open file with another user on CYGWIN , I get access denied message To: cygwin AT cygwin DOT com References: <2e1a331d-18e5-4dcc-0db6-257eeea2640a AT gmx DOT com> From: Alex Message-ID: <592ee8fc-fbdb-7bea-3508-0e5e42dee689@gmx.com> Date: Wed, 17 May 2017 16:53:22 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:T8X5P/E4DI4=:ySwftz22EwfkxHTd5dkGEs Eukw5SyiVC04R2ZlfG9fz6M6jAW06pShgypo3H2PLD/3yvCclItMS840cnL8LIPY9Dyp6+9tX weSCFmAqbh85MwIAjDPWoeZoxr/xcsTrN1M6zgyK1xA40CCTmvu0C28MhPh4Yrk8bF979Rq34 cvg/jT4oc4nN+sg+2OJ07pMvtp6Ydez0pNCzDtXJit1NRNXakIoGYTNxlCAWMPKbHc9nA/FxW weX0bFHJioD8CJZe0myVaWNwemwUsBgCDXc7qvqyZ+kNaPjLX0bEtEYjOBnTTZ6w337PV3uEZ 70Y9BJI1thbO51IEY3+mHeguxlV8a9x8ubO4J4zVSUWKARmpdmXe84DZMOE6K35JuPSvcN2QU fcchySNU+51Nb7T912rBqQifrlL6g5s6qSKyjwj2Ho4wgPMe+RW7U00LEnEoMIQ5DkBAl6+DC 9+wvYonucMmwCBTLulvo8lE5m1XcmlI1lia0YHUIbSnWapNYEzv9AM4RnxDpRLj7y5G9ObJNA OF3GFZ5tc0Jd6nssVuE6l4mIxxn8AmHLgyn1z57RbXmC6K+OfqaJjSZRtCvkM85/9PfOXLlXc 3M50coRg4FGdENVOouPSRJs2xDGNMPf+7CkU8+wREXUl3IvBJWW7iRqaeQ0rMXquj9XGnK9bx BOtw1Cm3r/gIOLxwfRJ8ERbAiIKLCXmcdo70USN/ORdmwLuOkhU8tnF+6H/19UG8r/gJAYVBz 18MwgB72Fwv8Yxg6awoTpdwqyrmJISk6xd8kLDwITntPVQKJsQK5Bkp/tJcz+dIIpj62Mhgw9 d6BljA5 On 16/05/2017 20:08, Brian Inglis wrote: > On 2017-05-16 02:12, Alex wrote: >> I have windows 2008 server and external partner requested me to install >> CGYWIN on it so they can send a file to via SSH. I created a domain user >> called test1 and they sent me the public key and installed home folder. >> They can send the file without any problem. I can able to read and >> delete if I login to windows server with test1 username. >> My problem is I can not open that files with another username. I have a >> username call test2 and I need to login to windows server with this >> username and run the script to import the files from test1 folder. I got >> access denied message when I try to open it. >> file permission show ; >> -rwx------ >> I changed the umask in profile to 002 , but did not fix the problem. >> Any idea? >> By the way I have a little knowledge of linux > > You would have to change umask in sshd's user's profile to perhaps have > any effect. I did in the /etc/profile but not sure what you mean in sshd's user's profile ! > > You may want to check the receiving directory DACLs with getfacl .../ > and if necessary change them with setfacl -m d:g::r--,d:o::r-- if only > data is being transferred to that directory. #getfacl samplefolder #owner :gm-user1 #group :Domain User user ::rwx group :: r-x other:r-x Yes they only transfer to file in this folder, if I run setfacl for this directory, will it apply to files inside and the file will be added later ? > > Removing directory DACLs e.g. with setfacl -bk .../ can stop Windows > programs being able to read or write directories or contents. > > Get them to set the permissions chmod +r on the source if possible, they said already give the file with full permission for everyone > and send with scp -p. > ? --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- 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