|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: Re: Re: Re: Win32::NetResourceby Necos (Friar) |
| on Sep 17, 2001 at 22:21 UTC ( [id://112989]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
This is a quote directly from the book (Win32 Perl Programming: The Standard Extensions, page 39): "The capability to specify user-level permissions (that is, permissions assigned to users and/or groups) on a share is currently not supported under any of the standard Win32 extensions." Then there is another statement some ways later in the book that reads (page 48): "Currently, the Win32::NetResource extension is not capable of applying account-based permissions on a network share. Users who need to apply permissions can use the Explorer or Server Manager programs that come with WindowsNT." This is my subroutine:
This code works for everything that I've done so far. The next step after creating the directory and setting local permissions for it is to share it and set the permissions for accessing it through the sharepoint (since it will be the user's home directory, we don't want anyone just accessing it any ole way. I might have to hack together a Win32::Registry routine that sets the permissions in the registry itself (I'm still researching that) if that's possible. More updates to come... Theodore Charles III Network Administrator Los Angeles High email->secon_kun@hotmail.com()
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||