Gossamer Forum
Home : General : Perl Programming :

Changing permissions in Windows 2000

Quote Reply
Changing permissions in Windows 2000
How can I write a perl script that will change ownership of files?

I have folders that are protected so users can see and edit their own folders and files. When I need to clean up the space I have to go in and change ownership of these files to the local administrator and change permissions to local administrator before I am able to delete the files/folders. Can I do this via a perl script?



Any help would be appreciated.



Thanks in advance.
Quote Reply
Re: [Rocky99] Changing permissions in Windows 2000 In reply to
How do you change the ownership in Win2K?

Are you using the attrib program?
Quote Reply
Re: [Rocky99] Changing permissions in Windows 2000 In reply to
Through the GUI of Windows 2000 Server.

Example go into the properties of the folder and go into security and select advanced and take ownership. Then after that completes I have to change permissions on the files to local Administrator.
Quote Reply
Re: [Rocky99] Changing permissions in Windows 2000 In reply to
I think that's a registry edit....I'd be nervous editing it by code!
Quote Reply
Re: [bretzke] Changing permissions in Windows 2000 In reply to
Challenges are fun though :)

http://search.cpan.org/...Registry.pm#SYNOPSIS