This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: file permissions issues on creation with cygwin 1.5.5-1?


You've shown that files created with Windows have somewhat different 
permissions than files created with Cygwin.  That doesn't support your
conjecture that Cygwin utilities cannot access the files it creates.

I don't see anything odd in your cygcheck output so you might want to 
try to run the offending commands with strace and, if the problem still
happens, see if there's anything in the output that indicates where 
things are going wrong.  If you can't see anything, send the output* to
the list with the exact command you used to create the problem.  Maybe
someone else will be able to see the problem area and/or reproduce it.

Larry

* Don't send the strace output to the list if it's larger than, say,
50K-100K.  Just post it on some sight and send the URL where the file 
is to the list.


At 07:51 PM 12/10/2003, Steven Hartland you wrote:
>Yer I had a read though the history in the mailing lists similar
>problems where mentioned but never any solutions that I could
>find.
>
>Double checking problems.html looks like the only thing I
>missed is the cygcheck.out so I've attached.
>
>Did a bit more testing and heres a quick one that I believe shows
>the issue:
>
>getfacl.exe games/
># file: games/
># owner: steven
># group: None
>user::rwx
>group::---
>group:SYSTEM:rwx
>group:Administrators:rwx
>group:mpukgame:rwx
>mask:rwx
>other:---
>default:user::---
>default:group:SYSTEM:rwx
>default:group:Administrators:rwx
>default:mask:rwx
>[root@eisenguard]/usr/local: cd games
>[root@eisenguard]/usr/local/games: touch 1
>[root@eisenguard]/usr/local/games: getfacl.exe 1
># file: 1
># owner: steven
># group: None
>user::rw-
>group::r--
>mask:rwx
>other:r--
>
>As you can see the file 1 was created with out SYSTEM,
>Administators group access where it is my belief that as
>they are set as "default" they should be inherited by any
>files created under them. This belief is enhanced by creating
>another file through explorer -> new ( text doc )
>which yields:
># file: 2
># owner: steven
># group: None
>user::rwx
>group::---
>group:SYSTEM:rwx
>group:Administrators:rwx
>mask:rwx
>other:---
>
>As an aside to this issue this issue it might be helpful
>to have the ablity to configure cygwin to set default
>acl's on files i.e. add SYSTEM access as without it
>major issues can occur. This however would be
>strictly and ENH not a DR.
>
>    Steve
>
>----- Original Message ----- 
>From: "Larry Hall" <cygwin-lh@cygwin.com>
>To: "Steven Hartland" <killing@barrysworld.com>; <cygwin@cygwin.com>
>Sent: Wednesday, December 10, 2003 11:30 PM
>Subject: Re: file permissions issues on creation with cygwin 1.5.5-1?
>
>
>> At 05:06 PM 12/10/2003, Steven Hartland you wrote:
>> >I've been having a number of issue with cygwin since install.
>> >I've gone though all the usual sources before asking but cant
>> >seem to get any closer to solving the issue.
>> >Im currently seeing two seperate problems which both turn out
>> >to be file permission based.
>> >Setup:
>> >Windows XP, NTFS, CYGWIN=ntsec, cygwin 1.5.5-1
>> >
>> >Issues:
>> >1. rsync partial file updates fails with:
>> >rename failed ... permission denied
>> >2. execution of an application extracted under cygwin fails
>> >random error ( it cant access its dll in the local dir )
>> >
>> >>From my investigations is appears that cygwin is maintaining
>> >the "default" permissions that should be inherited from the
>> >current dir / parent directory. The core cause for both the errors
>> >appears to be the lack of access to the created files by "SYSTEM".
>> >
>> >All the standard permission for the current user / or owner of
>> >the files seems to be correct but its the "hidden" permissions
>> >or lack of that are causing the issues.
>> >
>> >So where do I go from here? Has anyone else seen this
>> >behaviour, knows a fix?
>> 
>> 
>> There's been some traffic on this list about similar-sounding problems.
>> You can look in the email archives for some discussion and solutions there.
>> If you're intent on getting some personal feedback, I'm going to suggest 
>> that you start by reading and complying with 
>> <http://cygwin.com/problems.html>.  This will give the base-line of 
>> information from which someone can assess your installation.
>> 
>> 
>> --
>> Larry Hall                              http://www.rfk.com
>> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>> 838 Washington Street                   (508) 893-9889 - FAX
>> Holliston, MA 01746                     
>> 
>> 
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/ 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]