Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-30-2004, 06:56 PM   #1
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
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...
Old 06-01-2004, 08:51 AM   #2
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.

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?

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

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

See also...

man useradd or man adduser

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.


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
need to make www-data as super-user ALInux Linux - Security 1 11-05-2005 10:11 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 10:59 AM
Add WWW to URL - OT athens101 Linux - Networking 2 04-26-2005 02:24 PM
Apache 403 Forbidden: where is my 'www' user? guarriman Linux - General 1 01-21-2005 03:57 PM
user`s www dir in his home directory spotass Linux - Newbie 0 06-12-2004 02:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:13 AM.

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