Apache: In the beginning...


 
Thread Tools Search this Thread
Special Forums IP Networking Apache: In the beginning...
# 8  
Old 10-01-2003
If you read my posts you will see that no one is advocating running Apache as root and I have NO idea why you posted your reply.

Apache can be run as 'nobody' and it can be run as other users, like the example I gave, a 'mysql' user. This is not root.

The question about DOCUMENTROOT has ZERO to do with the user ID root.

This thread was about DOCUMENT ROOT (read the original post) and give me a break Smilie

In fact, the original poster specified that his web server ran as:

wwwrun

.... so 'wwwrun' is the userid that Apache will run when subsequent connection are made.... 'wwwrun' is not root Smilie
# 9  
Old 10-01-2003
Quote:
Originally posted by Neo
If you read my posts you will see that on one is advocating running Apache as root and I have NO idea why you posted your reply.

Apache can be run as 'nobody' and it can be run as other users, like the example I gave, a 'mysql' user. This is not root.

The question about DOCUMENTROOT has ZERO to do with the user ID root.

This thread was about DOCUMENT ROOT (read the original post) and give me a break Smilie

In fact, the original poster specified that his web server ran as:

wwwrun

.... so 'wwwrun' is the userid that Apache will run when subsequent connection are made.... 'wwwrun' is not root Smilie
I wasn't saying anyone was running it as root. I was simply saying that leaving the default permissions where only root had write access was more secure. However, we all seemed to trail from that... I was simply saying that the document root was more secure when ONLY root had read/write (unless software that dynamically edits the website is used, like wiki). Let's let this discussion die Smilie
# 10  
Old 10-01-2003
I'm glad to let the thread die, but I don't agree that making sure only 'root' has write access is necessarily more secure.

It might be more secure, or it might not, depending on how the system is configured and what are the files, the permissions, and a host of other things.

We have web servers that runs as user 'foo' and the entire filesystem under document DocumentRoot is owned by 'foo' and I'm very happy with the security and would not change it.


'foo' can have a shell like /dev/null and be very secure too and there is no chance of any script executing as 'root' with an accidental SUID flag, etc.

This is off topic from the original post, but it is something that is important. DocumentRoot with Apache and the userid of the listening process can be a host of userids, that is why it is configurable in Apache.


Neo
# 11  
Old 10-02-2003
Quote:
Originally posted by Neo
I'm glad to let the thread die, but I don't agree that making sure only 'root' has write access is necessarily more secure.

It might be more secure, or it might not, depending on how the system is configured and what are the files, the permissions, and a host of other things.
I'll take that as a comprimise. 'Nuff said Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Beginning learner

Hi guys, New member here, also new student! I'm just starting the Shell Programming, currently in chapter four in the Book in Unix, Linux, and OS X by Stephen G. Kochan & Patrick Wood (4th edition). I'm needing a little help with other possible ways to shorten this shell command: // ... (1 Reply)
Discussion started by: shiver
1 Replies

2. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

3. Web Development

Apache module development on apache 2.2

Hi, I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies

4. Shell Programming and Scripting

How to append in the beginning not at the end?

Hi, I now that >> will append text to the end of the text that is already inside the file. How to append the new text infront of the text that is already in the file. Thanks for any input. Regards, Chandu (3 Replies)
Discussion started by: chandrakanth
3 Replies

5. Programming

Beginning svn

I had hard time to understand svn, and asked my admin who said I was over thinking and recommend remember the 5~6 commands to do as told. But I am so lost when the situation changed a little bit. For example, I am in my local box under my project folder: /home/yifangt/svn/ where there are two... (5 Replies)
Discussion started by: yifangt
5 Replies

6. Shell Programming and Scripting

beginning less from line #

Hi from a script i want to to read a file beginning at line e.g. number 21 to the EOF. less +n21 temp.txt Bevor the result, it brings an empty page, so that i cant use for scripting. Any idea how the problem can be solved? Thanks in advance! IMPe (2 Replies)
Discussion started by: IMPe
2 Replies

7. Programming

Beginning C++

I want to learn C++ ! :) I have basic programming knowledge with python and perl. Does anyone know of any great beginner tutorials for C++? (1 Reply)
Discussion started by: cbreiny
1 Replies

8. UNIX for Dummies Questions & Answers

Beginning with UNIX

I'd like to start learning UNIX. Where should I begin? I have a desktop PC running Windows XP, but I don't use it for much since I got my Macbook. I was going to install Windows on my Mac, but I quickly noticed that I have absolutely no need for it. I'm just starting to learn my terminal... (5 Replies)
Discussion started by: andou
5 Replies

9. UNIX for Dummies Questions & Answers

the very beginning

Actually, I had my first problem before even BEGINNING using my FreeBSD. The installation guide said I should run the rawrite tool and should do something like A> rawrite if i put the the file I want to image-copy and the rawrite.exe in the same directory somewhere. OK done that. Next it asks... (6 Replies)
Discussion started by: Mudrack
6 Replies

10. UNIX for Dummies Questions & Answers

beginning unix

i am fairly new to unix, and i would want a very simple, small command-line operating system to learn as much as possible. are there any good ones? i have a fairly old laptop w/ about 700 MB, running windows 95. i would like to partition it, anyone know how to do that? any help is very much... (1 Reply)
Discussion started by: henroid815
1 Replies
Login or Register to Ask a Question