[Win32utils-devel] Win32-file update for FileSecurity

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Sat Mar 13 20:35:51 EST 2004


Hi,

I've commited win32-file update for FileSecurity DACLs

Added some constants, three singleton functions, and test code.

Calling Syntax is like this:

Win32::File.set_permission('filename',{'Everyone'=>Win32::File::FULL,
                              'NT AUTHORITY\\SYSTEM'=>Win32::File::CHANGE,
                              'BUILTIN\\Administrators'=>Win32::File::READ})

Win32::File.get_permission('filename').each { |account,perm|
  p account
  p Win32::File.securities(perm)
}

Enjoy with it.

Regards,

Park Heesob




More information about the win32utils-devel mailing list