LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-12-2005, 07:14 AM   #1
murr4y
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:
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?
 
Old 06-12-2005, 04:10 PM   #2
Introx
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Rep: Reputation: 0
use `usermod`


`man usermod` is your friend..
 
  


Reply



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 07:19 PM
How can I change a user's uid and gid? homesp Debian 2 05-31-2005 02:39 PM
how to change UID linuxidiot2 Linux - General 2 07-30-2004 04:17 PM
After UID change can no longer ftp meshking Linux - General 4 07-13-2004 02:44 AM
Change UID of process/Privileged ports syntac Linux - General 1 04-17-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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