run sudo cmd as wwwrun
Hi,
I want to run a program -from within a php script- as user wwwrun using sudo but there is no tty assigned. Looking around I found this entry for the sudoers file as a possible solution:
Defaults:wwwrun !requiretty
Unfortunately this seems to be ignored as I still get the same error.
"som13 sudo: wwwrun : TTY=unknown ; PWD=/DATEN/www/vhosts/some ; USER=root ; COMMAND=/usr/bin/somecmd"
(This is happening on SUSe with sudo version 1.7.6p2)
Can you shed some light on this?
EDIT
The setting was not ignored. But there were additional mistakes in the program I had to correct...
Last edited by j-ray; 09-04-2014 at 04:57 AM.
Reason: detail added
|