LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 05-30-2004, 06:56 PM   #1
restless
Member
 
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
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

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


Reply


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


All times are GMT -5. The time now is 11:54 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration