How to run normal user root user command without sudo in linux

Hi Team,

I have one local user call raj. I have added that user in the sudoers file like below.


Now i am trying to restart the httpd service as raj. I am giving the command below as raj user.

service httpd restart ====> Error

but when i tried like as

sudo service httpd restart -====> working

I need to use the command as service httpd restart not like sudo service httpd restart.

How can i give permission to local user(raj) to run command without sudo.

type sudo before start service

eg. sudo service httpd start

1 Like

sudo is needed for normal user

otherwise you must change id of user to zero

  1. vim /etc/passwd
    2)change uid of user to zero


i don’t recommend above solution.