LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   add www-data user (https://www.linuxquestions.org/questions/linux-newbie-8/add-www-data-user-187776/)

restless 05-30-2004 05:56 PM

add www-data user
 
well i'm running slackware 9 atm... apache, php, mysql all that stuff installed.. but the problem is.. httpd is running with nobody user.. i think that's also the reason i can't look in subdirectories of my /var/www/htdocs dir.. i read in httpd.conf that i need to add a new user.. but how exactly do i do that?? in debian the user is allready made, but not in slackware :s.. what rights do i give that user?

Thank you...

Donboy 06-01-2004 07:51 AM

Quote:

httpd is running with nobody user
Shouldn't be a problem. It almost doesn't matter. Really it matters most when you combine apache with other services (like FTP), then you have to give more concern for what user apache is running as.

Quote:

i can't look in subdirectories of my /var/www/htdocs dir
You can't look? Howso? You mean you're unable to cd into that directory and hit ls and see a file listing?

Quote:

i read in httpd.conf that i need to add a new user
I don't think it's necessary.

Quote:

but how exactly do i do that??
useradd www-data

See also...

man useradd or man adduser

Quote:

what rights do i give that user?
If you're going to run apache as this user, you should give the user as few permissions as possible. What that means is, don't give him a shell for login purposes, don't make "him" the owner of any files or directories.


All times are GMT -5. The time now is 12:42 AM.