At 03:03 PM 5/1/2001, you wrote:
>Does anyone know of a way to use perl and CGI to have the following:
>
>html page w/ form to get stdin from the user for username and
>password.(basic),
>pass the variables to the perl script which then modifies permissions for a
>specific folder on NT
>and allows the user to then have access to a particular folder after having
>the password emailed to the user...
>...which in my opionon is a security risk in itself, but that's the way
>clients want it.
>
>For some reason I tend to think VB script might be able to it....any
>suggestions would be helpful.
>
>Matt
If VB can do it, Perl can too. Through a lot of hard work and broken
monitors, the guys up at ActiveState have made things pretty good for us
Win32 Perl guys. In fact just the other day I wrote a Perl script that
writes Word documents. OLE does have it's uses! : ) But I digress...
Anyway, the thing you want is Win32::FileSecurity. It allows you to
manipulate Access Control Lists (ACL's), the mechanism by which file,
directory, and other types of system-level object security is handled on
WinNT/2k. Get the ActiveState Perl ( http://www.activestate.com/ ) and you
should be all set. There's some good examples in the documentation, so
read them carefully and experiment a bit, and you should be off an running.
Thank you for your time,
Sean.