Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ssh/email error

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

  1. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    166
    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***
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. nickb

    nickb Well-Known Member

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

    Code:
    root    ALL=(ALL) ALL
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice