LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache: suPHP: how to change UID value? (https://www.linuxquestions.org/questions/linux-software-2/apache-suphp-how-to-change-uid-value-332711/)

murr4y 06-12-2005 07:14 AM

Apache: suPHP: how to change UID value?
 
Hey there..! And thanks for visiting my thread! :D

I have compiled Apache with suPHP module built-in.
I thought the "wwwrun" user (which Apache runs under) had to be below UID 100, so I set wwwrun to 15. Then I got this error:
Code:

UID of </path/to/phpfile.php> or its target (15 / wwwrun) < 100
The php file is owned by root and have the following permissions: -rwxr-xr-x

So I changed UID and GID of wwwrun to 501 and 502.
Now I get the following error:
Code:

Could not get passwd information for UID 15
System error: getpwuid() failed (Success)

I guess this is because no user with UID 15 exists (anymore).

I tried recompiling suPHP --with-apache-user=wwwrun to see if it'd change the UID it's trying to get but it doesn't. Yes, I deleted the original /usr/sbin/suphp file before "make install".

Some help would be greatly appreciated: How do I change the UID value?

Introx 06-12-2005 04:10 PM

use `usermod`


`man usermod` is your friend..


All times are GMT -5. The time now is 06:33 PM.