[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Every certain user ownership under a directory is replaced with anot
From: |
63l618u2 |
Subject: |
Re: Every certain user ownership under a directory is replaced with another user's |
Date: |
Sun, 25 Jun 2023 23:41:44 -0400 |
chown -R user:group /parent/directory
--
Regards,
Kat O'Kelly
Principal Engineer
Light River, LLC
Jun 25, 2023, 22:23 by greg_at_wooledge.org_63l618u2@duck.com:
> On Mon, Jun 26, 2023 at 09:18:13AM +0700, Budi wrote:
>
>> How on Linux do we replace every certain user ownership under a
>> directory with another user's
>>
>
> Use find(1).
>
> For example: find . -user oldname -exec chown newname {} +
>