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