I have a normal user on my system who needs to have write access on
httpd.conf. If I have the following entry in my sudoers file:
joe ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf
Is there any risk in doing this?
Best would be to change the group of that
But even then, I'm sure
What happens if they open that file with sudo and then do
I seem to remember you can avoid this in vim (or sudo). But it's worth bearing in mind.
Here you go: VIM: "sudo vim bad_idea"?
Basically, you want