Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Removing Permissions

by particle (Vicar)
on Jun 17, 2002 at 11:29 UTC ( [id://175051]=note: print w/replies, xml ) Need Help??


in reply to Removing Permissions

use the system command 'cacls'. this will remove 'Everyone' rights recursively from the directory specified.

my $result = system( 'cacls', $dir_name, '/t', '/e', '/r', 'Everyone' +);
i don't know why your script is hanging, because i'm not familiar with that module. in any case, it seems like overkill if this is all you're doing.

~Particle *accelerates*

Replies are listed 'Best First'.
Re: Re: Removing Permissions
by Anonymous Monk on Jun 17, 2002 at 13:37 UTC
    Great, It worked,…Thanks ;-) Any idea how to do the same thing but through the SAM instead?
Re: Re: Removing Permissions
by Anonymous Monk on Jun 17, 2002 at 13:56 UTC
    XCacls vs Cacls Any Advantages/Disadvantages in using Xcacls?
      xcacls is little known, i guess that's a disadvantage. it's freeware, so it's not supported by microsoft like cacls is. in some companies, you may have policies in place that forbid running software like this. it's part of the resource kit, but is freely downloadable from Microsoft. here is a brief syntax comparison between cacls and xcacls.

      for this simple application, cacls is a good choice. for more powerful uses, specifically when combining access rights, xcacls adds value.

      ~Particle *accelerates*

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-29 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found