Displaying 5 results from an estimated 5 matches for "get_permission".
Did you mean:
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
g...
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)
c...
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...
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
...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