Re: [python-win32] Extracting share permissions

2006-02-01 Thread Brad Tilley
Quoting Roger Upole <[EMAIL PROTECTED]>: > [Sorry, somehow I massively screwed up the format the first time] > > There are a couple of different options for persisting a security > descriptor. > > buffer(security_descriptor)[:] retrieves the raw bytes in binary form. > This can be passed to pywint

Re: [python-win32] Extracting share permissions

2006-02-01 Thread Brad Tilley
Quoting Roger Upole <[EMAIL PROTECTED]>: > > - Original Message - > From: "Brad Tilley" <[EMAIL PROTECTED]> > To: "Roger Upole" <[EMAIL PROTECTED]> > Cc: > Sent: Tuesday, January 31, 2006 8:28 PM > Subject: Re: [python-win32] Re: Extracting share permissions > > > > Quoting Roger Upole <[

Re: [python-win32] Extracting share permissions

2006-01-31 Thread Mark Hammond
> Mark, would you write an example of this using SHARE_INFO_502? I'm afraid I don't have the time to do it all. As a clue: >>> import pprint >>> pprint.pprint(win32net.NetShareEnum(None, 502)) ([{'current_uses': 0, 'max_uses': -1, 'netname': u'IPC$', 'passwd': None, 'path': u'', '

Re: [python-win32] Extracting share permissions

2006-01-31 Thread Brad Tilley
Quoting Mark Hammond <[EMAIL PROTECTED]>: > It looks as though the SHARE_INFO_502 supports this via the > sh502_security_descriptor attribute. Presumably this can be used with > NetShareGetInfo and NetShareSetInfo. > > Mark. Mark, would you write an example of this using SHARE_INFO_502? I'm not

Re: [python-win32] Extracting share permissions

2006-01-30 Thread Mark Hammond
It looks as though the SHARE_INFO_502 supports this via the sh502_security_descriptor attribute. Presumably this can be used with NetShareGetInfo and NetShareSetInfo. Mark. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Brad Tilley > Sent: Tuesday, 3