Re: readlines and break apart based on letters

2006-02-13 Thread Kent Johnson
rtilley wrote: > Hi, > > While trying to better understand security descriptors on Windows. I've > been examining text-based security descriptors. I have the security > descriptors on individual lines stored in a text file. I want to break > these lines apart based on owner, group, dacl and sac

Re: readlines and break apart based on letters

2006-02-13 Thread rtilley
I got this to work... just FYI: s = 'O:owner_sidG:group_sidD:dacl_flags(string_ace1)(string_ace2)...(string_acen)S:sacl_flags(string_ace1)(string_ace2)...(string_acen)' SD = {} S = str.split(s, 'S:') SD['S_ACL'] = S[1] D = str.split(S[0], 'D:') SD['D_ACL'] = D[1] G = str.split(D[0], 'G:') SD['G

readlines and break apart based on letters

2006-02-13 Thread rtilley
Hi, While trying to better understand security descriptors on Windows. I've been examining text-based security descriptors. I have the security descriptors on individual lines stored in a text file. I want to break these lines apart based on owner, group, dacl and sacl. These areas are demarca