I want to change permissions + owner on a .htaccess file but how do I go about doing this? I have tried googling it but most answers are just for people looking to do it on a directory recursively.
I'm sitting in the directory where the .htaccess is.
I login to the user I want the owner to be:
chown -R root .
then does this change the owner + permissions?
chmod 644 .htaccess
Using Ubuntu 12.04.5 LTS.