This is the mail archive of the cygwin 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: Setting cygwin permissions from Windows programs


Larry Hall (Cygwin) wrote:
Steve Holden wrote:

I am writing a Python program to generate file trees to be distributed to a Linus machine using Cygwin's scp. As the GUI to this program uses wxPython, a native Windows approach is the most straightforward.

Is there any way to set permissions on the output files from the Windows side that will result in predictable permissions when the output tree is viewed from Cygwin?

A Python recipe would be useful, but I'll take what I can get!


Have you checked what the permissions on a file you created by Windows looks
like under Cygwin and seen some problem? If so, please post the details and
perhaps someone can help. Otherwise, I'd suggest just doing the above and
working with the result unless you see problems. In general, unless you've
done something to restrict access in Windows, Cygwin can see and interact
with "natively created" files just fine.


Holger Krull wrote:
> Cygwin doesn't have an own management of permissions. So any program
> that modifies permission in Windows will be able to change permissions
> for cygwin files. cacls and xcacls are command line tools from windows.
> Don't know how this would be usually done in python.
>

Thanks for the responses. The issue is that I'd like the files to appear in Cygwin with permissions of -rwxr--r--, or -rwxr-xr-x for executables and directories.

I'm trying to avoid having to use Cygwin utilities to assert Cygwin permissions, but I am unable to determine the Windows permissions I must assert when creating the files in order for Cygwin to see those permissions. Currently a newly created file appears as:

-rwx------ 1 sholden None 13834 Dec 20 14:26 index.html

This is under Win XP. Are the Cygwin and Windows permissions different universes that don't interact?

regards
 Steve
--
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/


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