Welcome, Guest
Username Password: Remember me

command not found with visudo
(1 viewing) (1) Guest
Shell Script
  • Page:
  • 1

TOPIC: command not found with visudo

command not found with visudo 1 year, 4 months ago #512

  • scmuser
  • OFFLINE
  • Gold Boarder
  • scm master
  • Posts: 237
  • Points: 3429
  • Karma: 0
  • Honor Medal 2009
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.

Re: command not found with visudo 1 year, 4 months ago #514

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44589
  • Karma: 4
  • Honor Medal 2009
Try with this options...

su -
visudo
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar

Re: command not found with visudo 1 year, 4 months ago #517

  • scmuser
  • OFFLINE
  • Gold Boarder
  • scm master
  • Posts: 237
  • Points: 3429
  • Karma: 0
  • Honor Medal 2009
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.

Re: command not found with visudo 1 year, 4 months ago #518

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44589
  • Karma: 4
  • Honor Medal 2009
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
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar
  • Page:
  • 1
Time to create page: 0.87 seconds

     
    
Home Forum