LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-26-2011, 11:35 PM   #1
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 219

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


Hi,

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

thanks
 
Old 01-27-2011, 01:20 AM   #2
xeleema
Member
 
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: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

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".
Example:
Code:
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
luser@lhost$
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.
 
  


Reply

Tags
apache



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:51 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