search for: get_permissions

Displaying 5 results from an estimated 5 matches for "get_permissions".

2004 Nov 10
1
Silly question of the day:
Hi, > > Hi all, > > I noticed that I named the permission methods "get_permission" and > "set_permission". For some reason this is bugging me. Would anyone object > if I changed it to "get_permissions" and "set_permissions"? I don''t really > want to create an alias... > Following is the Result of the Google Search get_permissions : 1190 get_permission : 439 set_permission : 260 set_permissions : 222 So I recommend get_permissions and set_permission. :-) R...
2006 Mar 20
5
Need some ACL help for win32-file
Hi folks, I''ve got most everything done for the pure Ruby version of win32-file. The last thing left (since I''ll be moving the IO methods to a different package eventually) is the file security stuff. Here''s what I''ve got so far for the get_permissions method. However, I''m stuck at GetAce(). If someone could help me finish up this method, I would be most appreciative. Also, should we consider dumping this approach in favor of a OLE + WMI solution, using Win32_LogicalFileSecuritySetting ? Dan def self.get_permissions(file) cu...
2005 Mar 05
0
[win32-file] Suggested API change
Hi all, As things stand now, to get the ACL for a file, it''s a two step process: File.get_permissions("some_file").each{ |acct,perm| p acct p File.securities(perm) } I was thinking of merging these two calls into one so that it would return a hash, with the account as the key, and the value would be an array of access rights. Or possibly an array of ACLStruct''s instead of a...
2004 Nov 09
0
Silly question of the day: "permission" vs "permissions"
Hi all, I noticed that I named the permission methods "get_permission" and "set_permission". For some reason this is bugging me. Would anyone object if I changed it to "get_permissions" and "set_permissions"? I don''t really want to create an alias... Regards, Dan
2004 Mar 13
0
Win32-file update for FileSecurity
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,