scmuser created the topic: command not found with visudo
Hi,
I want to edit visudo and include one user for running apache but when i type following command as a userβrootβ
visudo
i get following errorβ¦
command not found..
P.S: I have tried to edit directly /etc/sudoers but it was not allowed.
rajeshkumar replied the topic: Re: command not found with visudo
Try with this optionsβ¦
su β
visudo
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
scmuser replied the topic: Re: command not found with visudo
I am getting following error⦠when login as a normal users⦠and run following command..
sudo ./apachectl start
i get following errorβ¦.
USER is not in the sudoers file. This incident will be reported.
rajeshkumar replied the topic: Re: command not found with visudo
Normal users is not having permission to execute βsudoβ command..
you will have to do the followingβ¦
Login as a root
su root
password: XXXXX
su -
visudo
Add the following line in sudoers fileβ¦
# User privilege specification
root ALL=(ALL) ALL
rajesh ALL=(ALL) ALL β
This was added by meβ¦
and then βrajeshβ can execute any command with sudo
Regards,
Rajesh
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
Iβm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND