Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Removing Permissions

by particle (Vicar)
on Jun 17, 2002 at 11:29 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2020-05-25 09:24 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (145 votes). Check out past polls.