I am trying to change the permissions for the apache file
/etc/apache2/sites-enabled/000-default.conf
when I input the command
sudo chmod 755 000-default.conf
the file still stays to read only.
I am trying to change the permissions for the apache file
/etc/apache2/sites-enabled/000-default.conf
when I input the command
sudo chmod 755 000-default.conf
the file still stays to read only.
This is because when you use 'sudo' in terminal, the permissions are being changed for 'root', but when you go into your file browser, you are no longer a 'root' user, you become regular user, and in terminal you changed permission for 'root'.
So first change the ownership and then change the permission for new user.
Or right click the file browser and 'open as administrator', and then you can access a file as 'root', and be able to rename, copy/paste/modify/delete the file as you do in Windows OS.
To know how to change the ownership, follow the links below:
sudo lsattr /etc/apache2/sites-enabled/000-default.conf
– Panther Jun 02 '14 at 18:01