Quoting Roger Upole [EMAIL PROTECTED]:
- Original Message -
From: Brad Tilley [EMAIL PROTECTED]
To: Roger Upole [EMAIL PROTECTED]
Cc: python-win32@python.org
Sent: Tuesday, January 31, 2006 8:28 PM
Subject: Re: [python-win32] Re: Extracting share permissions
Quoting Roger Upole
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
] Extracting share permissions
Hi there,
I've googled around a bit but I can't find an easy,
straight-forward way of
doing this in Python. Here's my situation: I want to be able to
extract 'share
permissions' (not file system permissions) from shares and then
reapply them.
We have
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'',
Hi there,
I've googled around a bit but I can't find an easy, straight-forward way of
doing this in Python. Here's my situation: I want to be able to extract 'share
permissions' (not file system permissions) from shares and then reapply them.
We have a large file server that occasionally has to
January 2006 9:11 AM
To: python-win32@python.org
Subject: [python-win32] Extracting share permissions
Hi there,
I've googled around a bit but I can't find an easy,
straight-forward way of
doing this in Python. Here's my situation: I want to be able to
extract 'share
permissions' (not file