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:from:subject:references:to:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=RFJRoof2taKFVxC8 dxwzCfm36zyafTLmC0x17jjmiWKrTqUTaRVr567AHRVFV/PnTHhUbOJzNdOA70du yGWWT+4YFhGgr+/Nlmy0T44gPF9NNRZsb0zrEvEypVo5+FlBI6ZmDc+95WYbuyfP fe610nYXWFHgeLy23CxP6KVTyME= 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:from:subject:references:to:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=jKQpZ62HkdS+nVQSDdD9eN 06Kd8=; b=JhJcheIW7oH+/PioERpnIaNP94PyMj11gsxLgXPwy97fWSc3d4Zax7 zvtmtG6DOguCIToEsU79/m6J5s7JA8fRWVxM6pd95MqL7kjq9/DhpuLy8pEnAyx/ JmW1ZReR6JksXb+fqtUTW3f10UNSF5/K4E+L+kSNgtJYjxX81857I= 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=-5.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*R:D*ca, H*F:D*ab.ca, H*r:ip*192.168.1.100, partner X-HELO: smtp-out-so.shaw.ca X-Authority-Analysis: v=2.2 cv=UpATD64B c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=cOs9nPkaS1JPazCf3VAA:9 a=QEXdDO2ut3YA:10 From: Brian Inglis 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> To: cygwin AT cygwin DOT com Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Message-ID: Date: Tue, 16 May 2017 11:08:30 -0600 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: <2e1a331d-18e5-4dcc-0db6-257eeea2640a@gmx.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfI0yGNC8myvdDzbEblIsqt2GbuWYM3yL7QtB2WpXszu+D/qVR/cpO7S/Azojva7UymtELkHnu7PZO78Y3olCqWemB72aurh1yIGnmx+5ss5r/9odwJeK /WiLPy8FmwKXplfN14ThmixWlbAB4FeazFXQ75h7BJfiy+u06SZ+w8Cze5BVDSEsoYutIjmR4F4OSg== X-IsSubscribed: yes 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. 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. 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, and send with scp -p. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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