Re: user nobody can't access file

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



try "sudo php /var/www/qa/launchpadnew/site/ftp_check.php" and "sudo
/var/www/qa/launchpadnew/site/ftp_check.php"

You're giving the user the ability to run
/var/www/qa/launchpadnew/site/ftp_check.php
 but not necessarily php.  Your script might not need it, so try it each
way.  And, since you're using sudo, you need to call "sudo" before the
command.


On Tue, Feb 3, 2015 at 5:32 PM, Tim Dunphy <bluethundr@xxxxxxxxx> wrote:

> Hey guys,
>
>  I need to give the 'nobody' user (which is what our apache runs as) no
> password access to a file, via sudo. This is what I've tried:
>
> nobody     ALL=(ALL)   NOPASSWD:
> /var/www/qa/launchpadnew/site/ftp_check.php
>
> But if I become the nobody user and try to access the file, it tries to
> prompt me for a password:
>
> -bash-3.2$ php /var/www/qa/launchpadnew/site/ftp_check.php
> [sudo] password for nobody:
>
> Can someone please point out for me where I'm going wrong? Cuz I don't see
> it!!
>
> Thanks ! :)
>
> Tim
>
>
>
>
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
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