The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ssh/email error

Discussion in 'E-mail Discussions' started by bigpy2003, Aug 8, 2005.

  1. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    host.domain.com : Aug 7 10:57:44 : hacpnet : can't stat /etc/sudoers: No such file or directory ; TTY=pts/1 ; PWD=/home/hacpnet ; USER=root ; COMMAND=/bin/su


    i keep getting an email with that error in it.
    The subject of the email is:

    *** SECURITY information for host.domain.com***
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    So, you need to track down what sent you that email. Presumably some app on the server that runs regularly sent it to you. When you find out where it came from, you should investigate whatever it's reporting to you.
     
  3. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    okay, i found out i am missing my /etc/sudoers file. someone tried sudo root.

    how do i go about creating my sudo file again
     
  4. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Run the "visudo" command and add the following line to the file

    Code:
    root    ALL=(ALL) ALL
     
Loading...

Share This Page