Hi
Here is the script using which I am able to get some user information.
- use Win32::Perms;
-
-
# Create a new Security Descriptor and auto import permissions
-
$filedir = 'C:\temp';
-
if( -e $filedir ) {
-
print "\n $filedir Exists...";
-
}
-
else {
-
print "\n $filedir Doesn't exists...";
-
}
-
$Dir = new Win32::Perms( $filedir ) || die "Unable to create Perms Object";
-
# dump the contents to STDOUT
-
$Dir->Dump;
This will give me the following output.
- C:\temp Exists...
-
-
Descretionary ACL:
-
Index Account Mask Type Flag
-
----- ---------------------------------------- ---------- ---------- ----------
-
0 CODE1\ing03125 0x001200a9 Allow 0x00000003
-
1 BUILTIN\Administrators 0x001f01ff Allow 0x00000010
-
2 BUILTIN\Administrators 0x10000000 Allow 0x0000001b
-
3 NT AUTHORITY\SYSTEM 0x001f01ff Allow 0x00000010
-
4 NT AUTHORITY\SYSTEM 0x10000000 Allow 0x0000001b
-
5 CREATOR OWNER 0x10000000 Allow 0x0000001b
-
6 BUILTIN\Users 0x001200a9 Allow 0x00000010
-
7 BUILTIN\Users 0xa0000000 Allow 0x0000001b
-
8 BUILTIN\Users 0x00000004 Allow 0x00000012
-
9 BUILTIN\Users 0x00000002 Allow 0x00000012
-
-
-
System (auditing) ACL:
-
Index Account Mask Type Flag
-
----- ---------------------------------------- ---------- ---------- ----------
-
This is a NULL SACL. This means that no auditing is taking place.
-
-
-
Owner:
-
Account
-
----------------------------------------
-
BUILTIN\Administrators
-
-
-
Group:
-
Account
-
----------------------------------------
-
-
-
Total: 10 ACE entries
But it is very difficult to understand the Mask code.
Please let me know is there any way by which i can get the human readeable information out of it?
I tried to decode the mask information using this link : http://www.roth.net/perl/perms/