Re: user nobody can't access file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

On Wed, Feb 4, 2015 at 4:57 AM, John R Pierce <pierce@xxxxxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux