Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Removing users from a directory

by foxops (Monk)
on Jan 10, 2003 at 15:33 UTC ( #225827=note: print w/replies, xml ) Need Help??


in reply to Removing users from a directory

Have you looked at Win32::FileSecurity ?
# Gets existing DACL and modifies Administrator rights use Win32::FileSecurity qw(MakeMask Get Set); # These masks show up as Full Control in File Manager $file = MakeMask( qw( FULL ) ); $dir = MakeMask( qw( FULL GENERIC_ALL ) ); foreach( @ARGV ) { s/\\$//; next unless -e; Get( $_, \%hash ) ; $hash{Administrator} = ( -d ) ? $dir : $file ; Set( $_, \%hash ) ; }
Update: Oops, earthboundmisfit beat me :(

Replies are listed 'Best First'.
Re: Re: Removing users from a directory
by ellem (Hermit) on Jan 10, 2003 at 15:40 UTC
    Have you looked at Win32::FileSecurity ?

    No, and I should be. Thanks
    --
    ellem@optonline.net
    There's more than one way to do it, but only some of them actually work.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2022-11-26 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?