Inheriting all ownership, rights and files from an user

José Isaías Cabrera jicman@outlook.com
Fri Jan 24 00:36:47 GMT 2025


On Thursday, January 23, 2025 02:47 PM, Bill Stewart expressed:
>> On Thu, Jan 23, 2025 at 12:33 PM Jose I Cabrera wrote:
>> My windows account just changed from e608313 to u618346 and I would like to
> > use the old setup that I had on the old account under the new account in
> > cygwin. How is this possible? Thanks.
> >
>> This may be possible by using the native Windows icacls tool. Running
> 'icacls /?' shows the following:
>> ICACLS name /save aclfile [/T] [/C] [/L] [/Q]
>> Stores the DACLs for the files and folders that match the name into aclfile
> for later use with /restore. Note that SACLs, owner, or integrity labels
> are not saved.
>> ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile [/C]
> [/L] [/Q]
>> Applies the stored DACLs to files in directory.
>> I don't know if icacls reorders ACEs in ACLs (messing up cygwin's
> permissions). You would need to test.

I looked into this, but I ran,
takeown /R /F c:\cygwin64\*
which sounded like what I wanted, but it damaged the installation. gcc didn't work after that, but it was running before. Anyway, I took a picture of the packages I had installed, and started from scratch. Thanks for the support. I should have had, perhaps, done the icacls. But, one learns every day. :-)


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /