[CentOS] user nobody can't access file

Ashish Yadav gwalashish at gmail.com
Wed Feb 4 06:28:39 UTC 2015


Hi,

On Wed, Feb 4, 2015 at 4:57 AM, John R Pierce <pierce at hogranch.com> wrote:

> On 2/3/2015 2:32 PM, Tim Dunphy wrote:
>
>> -bash-3.2$ php /var/www/qa/launchpadnew/site/ftp_check.php
>> [sudo] password for nobody:
>>
>
In sudoers file, you have to provide the whole path of the "php" command to
execute any php file.


>
> where did sudo even come into this picture?
>
> does this ftp_check.php script fork a shell with sudo or something?
>
> sounds like a VERY bad way of doing whatever it is you're trying to do.
>

I agree with John here. You should use better method to do this.


--Regards
Ashishkumar S. Yadav



More information about the CentOS mailing list