My vendor send me a server with Centos5 installed. They have setup the machine to directly login with root account.
With the root account logined, i can run command like this:
service httpd restart
I dont like the root account able to login directly. So i added "PermitRootLogin no" in sshd_config file. Then i created another user and put it to the sudoer list.
The problem arise. When i login with this new user, i cannot run the "service command" anymore. It will prompt command not found. even though i "sudo su", i cannot run this command, can anybody tell me what to do? Thank you.