Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51982 - homedir of apache user is wrong, therefore bugzilla config fails.
Summary: homedir of apache user is wrong, therefore bugzilla config fails.
Status: RESOLVED DUPLICATE of bug 77738
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 01:41 UTC by Elan Ruusamäe
Modified: 2005-07-17 13:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elan Ruusamäe 2004-05-25 01:41:16 UTC
# la -d ~apache
ls: /home/httpd: No such file or directory
# finger apache
Login: apache                           Name: apache
Directory: /home/httpd                  Shell: /bin/false
Never logged in.
No mail.
No Plan.

i wasn't able to locate place where apache user is created, but i assume the home directory was set there by previous apache ebuild.

ps: this wrong homedirectory prevents me from postconfiguring bugzilla:

Do you want to set a crontab [y/N]y
Unable to cd to "/home/httpd"
 * Then you just have to :
 * append to apache/conf: Include conf/bugzilla.conf
 * Restart Apache
 * login on http://yourhost/bugzilla/index.cgi and edit global parameters click *parameters* at the bottom
 * enjoy bugzilla!
# crontab -l -u apache
no crontab for apache



Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2004-05-25 12:59:42 UTC
To be honest, I'm happy for /home/httpd to remain as the apache user's home directory.  I don't know why we're installing users without a home directory.  This is done in the sys-apps/baselayout package.  I've re-assigned this bug to them to look into.

Best regards,
Stu
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-05-25 13:06:37 UTC
Stu, I don't give a rip what apache's home directory is or whether it exists or not.  Just tell me what the apache team wants and you'll have it.  Eventually I assume you would switch to enewuser and enewgroup whenever spanky finishes up his GLEP.

So then... what do you want me to change in baselayout?
Comment 3 David Stanek 2004-05-26 03:54:01 UTC
I commented on this in another working bug. Bug #49497 comment #6 may have some relevant information.
Comment 4 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2004-09-27 12:32:26 UTC
Hmm..  I guess this is our (apache herd's) problem, then..  should we create this in the 1.x/2.x ebuilds if non-existent?  Is /home/httpd ok by everyone else?
Comment 5 Christian Parpart (RETIRED) gentoo-dev 2004-09-29 06:48:03 UTC
beu wrote:
> Hmm..  I guess this is our (apache herd's) problem, 
> then..  should we create this in the 1.x/2.x ebuilds 
> if non-existent?  Is /home/httpd ok by everyone else?

However, apache has it's base dir for virtual hosts, 
called /var/www, well, I think, it's a good idea to 
have this vhost *base* dir somewhere *inside* the 
apache's homedir, that is, even if apache's home is 
/var/www. 
I dislike daemons having their homedir's in the user's 
home directory, /home. And, if we *really* think about
changing directory structure, we shall also think about
/srv (new FHS), and tough, maybe e.g. /srv/apache-httpd
(or whatever).

Greetings,
Christian Parpart.
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2004-09-29 06:53:14 UTC
Has anyone (/me pokes rl03 in the ribs ;-) looked into whether we really need a home directory for Apache?  Is it possible to create cron jobs w/out the apache user having a home directory?

Best regards,
Stu
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2005-02-06 00:21:26 UTC

*** This bug has been marked as a duplicate of 77738 ***