This is the mail archive of the
mailing list for the Cygwin project.
Re: How do start a cygwin shell session from a script ?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 13 May 2014 11:23:28 -0400
- Subject: Re: How do start a cygwin shell session from a script ?
- Authentication-results: sourceware.org; auth=none
- References: <CAPbWNKGufbzvGCQd4u4e3nNp5OteAWM=C7=AgE1z-UVoN6XzjA at mail dot gmail dot com> <CAPbWNKFJMBDbyXH9S86+95L_Ak06auOn7BKnoqD9z1n7Ggtufg at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot 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
times, this approach works best when you're trying to mix Windows native
and Cygwin tools.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple