How can I recursively change the owner of a directory to the user nobody in linux
Like this:
sudo chown -R nobody /parent_dir
You may change the owner of the directory recursively using the following command. -R
stands for recursive.
chown -R ownername foldername
You can also change the owner and group of the directory recursively using the following command.
chown -R ownername:groupname foldername
For more details refer this.