1

I am normal user with sudo privileges. I just installed apache2 and when tried to restart the service, it asked for the password of another sudo user in the system.

I can restart like sudo /etc/init.d/apache2 restart. But why it is behaving like this?

Details::

enter image description here

givinv@87-109:~$ 
givinv@87-109:~$ uname -a
Linux 87-109 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
givinv@87-109:~$ 
givinv@87-109:~$ 
givinv@87-109:~$ apachectl -v
Server version: Apache/2.4.18 (Ubuntu)
Server built:   2016-07-14T12:32:26
givinv@87-109:~$ 
givinv@87-109:~$ sudo cat /etc/sudoers | grep 'ashu\|givin'
ashutosh ALL=(ALL:ALL) ALL
givinv ALL=(ALL:ALL) ALL
givinv  ALL=(ALL) NOPASSWD:ALL
givinv@87-109:~$ 
givinv@87-109:~$ 

Is it related to apache2 or sudo user ? Please let me know if more details needed.

prado
  • 275

0 Answers0