delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/16/07:10:58

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=s8T3d0e
uTwL8qSdHr9S8c8j6mBiam9tPwnP7z1j5ISz4rk2C1Tneg+b52RQ+L0K3RBuFCX9
zZsxKtSbCHFfEiPv/JE03wvjZ5GR1JT2HANF+b231lWCxYKt/BiluXBrykn55FiG
QD94loKBIY9mDVnfFxXzPOULg0dGjhRKfeJw=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=dFfQI7wjw2pBM
KLB8/y8WzU/V0Y=; b=cAljT3D2ctM5y6uUWrNCr4ly44EiqFvz8HCKWLEbBQTse
VhQTfIABRjIvafkpvhl0LTE3/rdopVxtiO3cwnyT0qZNP8bj5Z/U5K346P8WAQqG
coNbUt6CS7bNtapZQGnVfymvTk0Zcfjl1jSGuMfZvry594FGwnYCb6JapvN+qc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=Alex, partner, viruses, UD:avast.com
X-HELO: mail-pg0-f47.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=X/ZVNY9TK3ZzpcJPic/dsGdFtM0NE+ET/2UHVvworAo=; b=GHtICb3fQZSBB70C81g3LQQaBfiLfHkUqHkLMez9W06B8s/SdPQogXVximzZ4Kyt5h Ub9+/KUxcKwnDGwOJUKDqEswwAEvnkNOOSINtxVWFiSz1vdDZks6+ILShhYJQjJDrXKW zx+W5W/emLEofxGDJa+WwNs5yc8Hcf1N7BC2ShPewW5V6Cl+eanESBubloEhXhlx3x/L l/8FzJd73jBQvYQeFVZNvQMh8BYztF0n0xI08gRY+E78Xq4AQM+ikM3w5hpmRix3VIn+ nlDW/F516V85Wonvy4GdtLqu7FGTQMpCs4Scm8nxwMDkF4Ct9aWMhIpPRQF/3hRaoYYq MyfQ==
X-Gm-Message-State: AODbwcBUg2OryeO4qaBKrmky4r/Cdbt2XyqAbILjDFkBW34NinM1QJIm oUjeOVU+4sM0spJRnO0857BXcEZPHk2D
X-Received: by 10.99.168.1 with SMTP id o1mr11073180pgf.105.1494933038012; Tue, 16 May 2017 04:10:38 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <2e1a331d-18e5-4dcc-0db6-257eeea2640a@gmx.com>
References: <2e1a331d-18e5-4dcc-0db6-257eeea2640a AT gmx DOT com>
From: Dan Kegel <dank AT kegel DOT com>
Date: Tue, 16 May 2017 04:10:37 -0700
Message-ID: <CAPF-yOZR8BgzPXKVvUBzP-LXijnb+GnZ2USwcb=kEPw1jbnGyw@mail.gmail.com>
Subject: Re: when I try to open file with another user on CYGWIN , I get access denied message
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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 <lombak AT gmx DOT com> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019