sudoers broke after Easyapache4 conversion
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?
-
Found the solution. The new apache setup now runs as the user coresa2 not nobody. 0 -
Hello, I'm happy to see you were able to address the issue. Thank you for updating us with the outcome. Information on which user PHP runs as for each PHP handler is found at: PHP Handlers - EasyApache 4 - cPanel Documentation Thanks! 0
Please sign in to leave a comment.
Comments
2 comments