New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to change Owner and Group on a Directory

Started by emar, December 13, 2022, 08:06:15 PM

Previous topic - Next topic

emar

Hi,

I tested that fix permissions option, selected a domain name.
It changed/set Owner and Group to "nobody" on some directories.
But I need to change "nobody" to the correct Owner and Group "user1"
Need to set the right Owner and Group for all files and folders in these directories.



Any help appreciated..

overseer

Here's a fun little one-liner you can execute from a root terminal that will reset ownership on all your user directories in /home:
for i in $(ls /home); do chown $i:$i /home/$i; done