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=XfahvwRoPujJbZRE qtkux+3D5dtcuzmuMMCRPbbheGM2VUJHwksP7L3ArXVZPyZDxJ0/rQt1NrD8KmVr UVpYsXd2fsKwK8IwCvy0gzJPhTGaH7qlamCCI8KbGLWieeCavdPeAG40twg+TnlR LemzSqakP74fvMPul2T4fzbXHc0= 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=+ZmhhGoBt19pwDGcPsZ4gs QEC1s=; b=fAOnK4hgD5H1UscI47ocysKiZ7GdBKOBKr4pyP4ICEfDjq0dyipDLw fFsiQTx2y3E3rncdFvGSvegXZiyB444kUu2R3yGhuPopyIzvdUB274iDKTKB2/qX /XaAH56YCmje91UdURFzAAOcudnOu7IBO+wQKVxL2G7l1O+KfC+AA= 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.4 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=partner, viruses, UD:avast.com, wwwavastcom 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: <1087bdfc-567a-88b4-881e-9a7e70c58b94@gmx.com> Date: Tue, 16 May 2017 17:44:37 +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:FV8hSKudAM0=:ukjH75jQGNChPDNUosAWJ3 GlUsWGEGXns72kYbAE+WUvb1S6C+cSmA8ec/DWlDrI9k+q89Vk7aeH4KCCxd2NZ63LFXtv8ik Hee2DwdaJ58BsX1xuhb2M9ufMCTB8W7zEd2ebtOMRuFUSFPAv9PeT5hoCLW6Wtf24mWLcI0fj YDHZ/p72R43UOqtom/j2nwoO+0EXB6wHk/U1Yt7IZbG/hxpTi3LSSdqRZZGV+UYy68gQHkZDa wSeFGIvd3ysEmSnTQYZ3AcFnYvNDDD5555kVboxau9mzAG/LEZxljq4h8uvN3Jz89pwPYnCDE Lb9EMW29+tYkhCvum08bRQUXBO3yPjAieZ3zGKYHXAhdZhAhr57gm4GZ45S6q44gGmvcAWW8l 8qENnIpNM+XP+Z8lVeRaDkls/d378GkZJWdW+Y+trxfb+CnbKFCpbjGwBMnFNkANficamgAP6 EzqBWV8zb9IYUHgbLhS1+CNFrkYcIMg6fxVfaotNMsZQaa3avS5vafXNS5YIkLy2TDtfMUBjD g998XqeNdPyXX0hJDnNeaANp2rcVl4szQoLvQmB0uiAONzb3MQpk0dyiI8EkGqjx44ie5y8x9 ri9M5yp9bEkoucC7VqNZj57aoFnCnsdTC1Dzh2mnKS5I1faWLad+tRRr4kgqkr5vrU+671m/y sLUJ8P/4KYKIMzHKU4Oi786mvUXOnWT4T2N4HfEgpmwytIqFN7SjI9xfJto5pvi9dIwptJiR7 K+ZYoiF6KbJZ6JtjWChr70D90E4R7A/D2Yz0jHUMhm94sUznfd42NWGyLSF3iypQq+Y1mqmpx B0w6H6F 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. I need something like folder permission and will apply to all files in it also must be apply to files will be created latter thanks On 16/05/2017 14:10, Dan Kegel wrote: > Did you try > chmod 755 foo.dat > on the file (assuming it's named foo.dat)? > > umask 002 would have done that for you if you'd done it before > creating the file. > > It's a bit odd to have +x set on a data file, so if it's not a dll or > exe, you might > want to make it chmod 644 instead. > - Dan > > > On Tue, May 16, 2017 at 1:12 AM, 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 >> >> thank >> >> --- >> 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 >> > -- 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