LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack 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
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,596

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
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
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,596

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
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
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,596

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
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: 98

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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/Novell 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


All times are GMT -5. The time now is 08:03 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration