Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: SetACL problems

by sgt (Deacon)
on Sep 13, 2007 at 13:14 UTC ( [id://638790]=note: print w/replies, xml ) Need Help??


in reply to SetACL problems

Cygwin has setfacl and getfacl. IIRC cygwin does just enough windows acls to implement un*x permissions semantics, so keep in mind it might not give you everything. (BTW where is your setacl, I have windows xp and could not find it, and so could not contrast the output of both set*acl).

If you don't care for a "normal install" using cygwin setup, do the following:

  • Get the "cygwin" package (just 1 package) for example the latest one say with 'curl -O ftp://ftp.heanet.ie/pub/cygwin/release/cygwin/cygwin-1.5.24-2.tar.bz2' (-big-Oh not -zero)
  • extract it somewhere and just put the *facl and cygwin1.dll in a directory you can access from your code
  • try running getfacl from there; if it does not work get the ash package, proceed as before but run getfacl from ash.
  • IIRC directories have also a default acl...note that *I do not do acls* ;)

    At least that gives something to try if you're stuck. Good luck.

    % steph@ap (/home/stephan) % % cygcheck /usr/bin/getfacl.exe C:/cygwin/bin/getfacl.exe C:/cygwin/bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll
    cheers --stephan

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://638790]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (7)
    As of 2024-04-19 14:36 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found