LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-14-2005, 08:52 AM   #1
gerilaradio
LQ Newbie
 
Registered: Mar 2005
Distribution: fedora 4, slackware 10.2
Posts: 21

Rep: Reputation: 15
how to change apache user and group


i'm read this article http://www.petefreitag.com/item/505.cfm its seems my httpd.conf using nobody as a user and group as a default. so how to change this user and group.
 
Old 12-14-2005, 09:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You must edit httpd.conf and change the values for "User" and "Group" accordingly
 
Old 12-14-2005, 09:17 AM   #3
gerilaradio
LQ Newbie
 
Registered: Mar 2005
Distribution: fedora 4, slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
i can't edit httpd.conf manually even as root.
 
Old 12-14-2005, 09:36 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
How do you try to edit the file? If you use vi then save with :wq! or change atrributes:
chmod +w httpd.conf

Last edited by bathory; 12-14-2005 at 09:42 AM.
 
Old 12-15-2005, 08:44 AM   #5
gerilaradio
LQ Newbie
 
Registered: Mar 2005
Distribution: fedora 4, slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
yes, i use vi to edit httpd.conf. here the error
Quote:
Starting httpd: httpd: bad user name apache
 
Old 12-15-2005, 09:26 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The user and group you specify in httpd.conf must exist in /etc/passwd and /etc/group respectively. If they don't exist you have to create them:
Code:
groupadd apache
useradd -g apache apache
 
Old 12-15-2005, 07:49 PM   #7
Widgeteye
Member
 
Registered: Mar 2005
Posts: 130

Rep: Reputation: 17
Quote:
Originally Posted by gerilaradio
i can't edit httpd.conf manually even as root.
This makes no sense at all.

show me the command you are using to edit httpd.conf
 
Old 12-17-2005, 10:10 PM   #8
gerilaradio
LQ Newbie
 
Registered: Mar 2005
Distribution: fedora 4, slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
thanks bathory, finally its works
Quote:

groupadd apache
useradd -g apache apache
 
  


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
problem with a user group and apache javier_ccs Linux - Software 7 07-28-2011 03:53 AM
what is the webserver's (apache) default user/group on SuSe MaestroC SUSE / openSUSE 1 09-09-2005 01:15 PM
Apache 2.0.53, vhost, each having its own user:group Davus Linux - Software 1 02-27-2005 11:44 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
how to change user group ? Menestrel Linux - Newbie 7 05-20-2004 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:08 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
Open Source Consulting | Domain Registration