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!

sudoers broke after Easyapache4 conversion

Discussion in 'EasyApache' started by aNightOne, Sep 19, 2016.

  1. aNightOne

    aNightOne Member

    Joined:
    May 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    After upgrading from easyApache3 to easyapache4 and going from PHP 5.6 to PHP 7.0
    My php scripts that had been working correctly relying on sudoers to ssh into a different server and place a backup there stopped working. I get the following errors:

    a2.domain.com : Sep 19 01:00:02 : coresa2 : user NOT in sudoers ; TTY=unknown ; PWD=/home/coresa2/public_html/cs-5 ; USER=coresa2 ; COMMAND=/usr/bin/ssh -i /home/coresa2/.ssh/cswest_ubiq -p 6900 democs@111.111.111.111 cat >/home/democs/mysql_cs5_dumps/2016-09-19/cs5_master_cron_2016-09-19-01_00_02.sql.gz

    The sudoers file seems intact and still includes the following addition:

    nobody 162.249.6.102=(coresa2)NOPASSWD:/usr/bin/ssh

    Ideas?
     
  2. aNightOne

    aNightOne Member

    Joined:
    May 13, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Found the solution. The new apache setup now runs as the user coresa2 not nobody.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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