linux chown files based on previous owner
if you want to change all files owned by an user to be owned by a different user, there is a trick. figure our old owner id. for example with
ls -n
this will list you numeric ids of the owner. use the id with the command bellow
find /path/ -uid numeric_uid -exec chown newgroup.newuser '{}' ';'
Add new comment