From: Wilson Bilkovich Date: 2006-03-22T10:06:06+09:00 Subject: Re: Windows Advanced Permissions on Folders On 3/21/06, Archie Call wrote: > In a MS-Windows environment I know how to recurse all the folders using > a Dir.glob statement that starts a certain level of the directory tree. > > I am struggling with a way in Ruby to set the advanced permissions for > certain folders: > > Properties > ..Security > ....Advanced > ......View Edit > ........Permissions > ..........13 Detailed kinds of specific permissions for the folder > > There must some kind of command to set these: Is it something with > Win32API? > > I have searched hi and lo in Google with little luck? > > TIA...Arch Presumably there's an API for setting the ACLs in NTFS, but I've never used it. Until you figure out how to invoke that, you could just do a system() call out to "cacls.exe", which will take care of it. Do "cacls.exe /?" to see the options. This Google hit seems to have some useful info that could be interpreted into Ruby: http://msdn.microsoft.com/msdnmag/issues/04/11/AccessControlinNET/