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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - sudoers broke Easyapache4
  1. jfall123
    Replies:
    4
    Views:
    234
  2. arvid3nel
    Replies:
    8
    Views:
    749
  3. jefferyw18
    Replies:
    1
    Views:
    551

Share This Page