chown all files on a website to change owner

chown -v -R registration:registration public_html

The first part registration: is the group the second part :registration is the owner

-v is verbose

-R is recursive

So this will change the group and owner of every file and folder nested inside public_html

Leave a comment