public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: How do start a cygwin shell session from a script ?
Date: Tue, 13 May 2014 15:32:00 -0000	[thread overview]
Message-ID: <537238F0.8070505@cygwin.com> (raw)
In-Reply-To: <CAPbWNKFJMBDbyXH9S86+95L_Ak06auOn7BKnoqD9z1n7Ggtufg@mail.gmail.com>

On 05/13/2014 07:25 AM, Timothy Madden wrote:
> It appears I found my missing shell session settings: the access
> rights on the current build and source directories.
>
> The manual build was always run within the user home directory in
> cygwin, and cygwin could see the proper access right on all the files
> used in the build.
>
> But outside the user home directory, cygwin no longer sees the proper
> permissions for directories and files, even though the user running
> the cygwin session can very well read and write the files. But cygwin
> will list the files with no permissions whatsoever, not even u+r (read
> access for the file owner). If I use the Windows `icacls` command to
> explicitly add the current user to the ACL on the directory with
> inheritable (recursive) "full control" access right, than cygwin can
> see the proper access rights too for such directories.
>
> Can this issue maybe be fixed, so cygwin sees the same permissions, on
> any files, user that Windows will grant to the current user ?

There are some tools that only look at the POSIX permissions (rwxrwxrwx),
which is what Cygwin works to provide.  But if you're using non-Cygwin
tools to create or modify files, these will not necessarily comply with
POSIX permissions.  If using Cygwin alternatives for these tools isn't
an option, you can mount the directory tree in question with the "noacl"
option to tell Cygwin tools to always allow access (see
<http://cygwin.com/cygwin-ug-net/using.html#mount-table>).  Many
times, this approach works best when you're trying to mix Windows native
and Cygwin tools.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

      reply	other threads:[~2014-05-13 15:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 11:35 Timothy Madden
2014-05-12 19:39 ` Larry Hall (Cygwin)
2014-05-13 11:49 ` Timothy Madden
2014-05-13 15:32   ` Larry Hall (Cygwin) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537238F0.8070505@cygwin.com \
    --to=reply-to-list-only-lh@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).