Good morning. I'm daring to ask my first ever qestion here. I'm annoyed having to use sudo all the time to modify the apache config files - mostly when I use the Remote SSH feature of my editor, then I can't use sudo anyway (or can I?) -.-
So I was thinking in just chgrp -R adm /etc/apache2
and giving chmod -R g+w
on e.g. sites-enabled/
I'm the only user on this mashine. How are you handeling this stuff? Is my thonght going in a good direction, or is there a reason why the permissions are not already set this way? Are there other concerns that I'm not seeing right now?
I hope this question is not too stupid and I didn't overlook the perfect answer that's already there. Thaks in advance!
sudo su - root
which give you the root shell, or make it password less but I would not suggesting that you change the ownershipsudo -i
sudo -i
thing is 23 years old andsudo -s
existed from 1995.