Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-27-2011, 12:35 AM   #1
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Rep: Reputation: 27
Question installing apache in ~ of a normal user


I am building apache2.2 from source, would installing in /home/USER_NAME, be a bad idea?

Old 01-27-2011, 02:20 AM   #2
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252

Although that wouldn't be "bad" per se, as UNIX can be quite flexible, there's a few things you'll want to keep in mind;

1) In order to run a webserver on a port under 1024, the user in question is going to need some extra rights.
Typically this is handled by a startup script (in /etc/init.d or /etc/rc.d), which calls httpd as root, then spawns child-processes using a different account. This is called "Privledge separation".
luser@lhost$ ps -ef | grep httpd
apache   16333 31600  0 Jan26 ?        00:00:22 /usr/sbin/httpd
apache   16334 31600  0 Jan26 ?        00:00:21 /usr/sbin/httpd
apache   16458 31600  0 Jan26 ?        00:00:19 /usr/sbin/httpd
root     31600     1  0 Jan20 ?        00:00:01 /usr/sbin/httpd
2) Most SysAdmin's (that I know) would cut a small filesystem for their new application. This keeps it separated, and has the benefit of stopping an application from "flooding" a critical filesystem (some would argue whether or not /home is critical...).

3) If this is going to be any type of "standard" for your systems (rather than just a one-shot experiment), then you may want to avoid just dropping things into a user's home directory.



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
Installing Device Driver As a Normal User Febi881 Linux - Software 9 07-08-2010 10:49 PM
Installing programs for normal user (non-root) tuesday Linux - General 10 04-02-2008 01:51 AM
Hi. Apache not working under normal user. parsex Linux - Newbie 8 07-27-2006 04:06 PM
Letting normal user change apache directory nivek7 Linux - General 9 05-04-2004 07:58 PM
installing giFT as a normal user Basel Linux - Software 3 02-17-2004 06:15 AM

All times are GMT -5. The time now is 05:44 PM.

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