Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-12-2005, 08:14 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 17

Rep: Reputation: 0
Apache: suPHP: how to change UID value?

Hey there..! And thanks for visiting my thread!

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:
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:
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?
Old 06-12-2005, 05:10 PM   #2
LQ Newbie
Registered: Apr 2004
Posts: 11

Rep: Reputation: 0
use `usermod`

`man usermod` is your friend..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change uid group id mfrangos79 Linux - General 1 11-07-2005 08:19 PM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 03:39 PM
how to change UID linuxidiot2 Linux - General 2 07-30-2004 05:17 PM
After UID change can no longer ftp meshking Linux - General 4 07-13-2004 03:44 AM
Change UID of process/Privileged ports syntac Linux - General 1 04-17-2003 08:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration