Question about permissions settings using SUDO

So I have SuiteCRM in the root of public_html, then I have a subdirectory (sub-domain) in /sandbox where I have another installation of SuiteCRM.

If I run the SUDO commands from public_html/sandbox folder it will only affect sandbox and below right? (It won’t affect the root installation in public_html?) I don’t want to affect the live one in public_html.

sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload

Yes, that “.” dot is specifying the directory - the one you’re currently on.

And it will recurse downwards due to the -R argument.

1 Like