Re: [python-win32] Reg. taking folder ownership

2018-08-28 Thread eryk sun
On Tue, Aug 28, 2018 at 5:03 AM, Goku Balu wrote: >> Eryk wrote: >> This call will succeed even if one or more of the privileges wasn't >> modified. In this case GetLastError() returns ERROR_NOT_ALL_ASSIGNED >> (1300). This will be the case if you try to enable the take-ownership >> and restore pr

Re: [python-win32] Reg. taking folder ownership

2018-08-28 Thread Goku Balu
> Eryk wrote: > This call will succeed even if one or more of the privileges wasn't > modified. In this case GetLastError() returns ERROR_NOT_ALL_ASSIGNED > (1300). This will be the case if you try to enable the take-ownership > and restore privileges for a UAC restricted token. Thanks Eryk for re

Re: [python-win32] Reg. taking folder ownership

2018-08-27 Thread eryk sun
On Mon, Aug 27, 2018 at 6:23 AM, Goku Balu wrote: > > My use case is this. Folder1 is created by Admin1 and ACL is set by Admin1. > Now Admin2 wants to change the ACL. I think we have two options here > 1) Take folder ownership and the do the changes > 2) Take elevated privileges for Admin2 accoun

Re: [python-win32] Reg. taking folder ownership

2018-08-27 Thread Tim Roberts
Goku Balu wrote: My use case is this. Folder1 is created by Admin1 and ACL is set by Admin1. Now Admin2 wants to change the ACL. I think we have two options here 1) Take folder ownership and the do the changes 2) Take elevated privileges for Admin2 account and add/remove ACL entries (Similar