Sponsored Content
Full Discussion: Process permissions
Top Forums UNIX for Advanced & Expert Users Process permissions Post 42199 by skotapal on Thursday 23rd of October 2003 02:42:32 PM
Old 10-23-2003
Hi I have my apache running as www-data - except for 1 parent process that starts off as root - This is accepted as ports < 1024 need to have root to be accessed. I have my apache binaries owned by root though.

Apache is run as apache:apache

But to start apache I have to be root!? How can I resolve this? By changing ownership of the apache binaries - /usr/local/apache?

My apache runs like this:
root 31522 1 0 Oct19 ? 00:00:00 /usr/sbin/apache-ssl
root 27112 1 0 Oct22 ? 00:00:00 /usr/sbin/apache
www-data 30906 27112 0 06:25 ? 00:00:00 /usr/sbin/apache
www-data 30907 27112 0 06:25 ? 00:00:00 /usr/sbin/apache
www-data 30908 27112 0 06:25 ? 00:00:00 /usr/sbin/apache
www-data 30909 27112 0 06:25 ? 00:00:00 /usr/sbin/apache
www-data 30910 27112 0 06:25 ? 00:00:00 /usr/sbin/apache
www-data 30911 31522 0 06:25 ? 00:00:00 /usr/sbin/apache-ssl
www-data 30912 31522 0 06:25 ? 00:00:00 /usr/sbin/apache-ssl
www-data 30913 31522 0 06:25 ? 00:00:00 /usr/sbin/apache-ssl
www-data 30914 31522 0 06:25 ? 00:00:00 /usr/sbin/apache-ssl
www-data 30915 31522 0 06:25 ? 00:00:00 /usr/sbin/apache-ssl
www-data 31455 27112 0 07:44 ? 00:00:00 /usr/sbin/apache
www-data 32696 27112 0 11:37 ? 00:00:00 /usr/sbin/apache
www-data 32698 27112 0 11:37 ? 00:00:00 /usr/sbin/apache

But I can only start this as root not as any other user - even www-data.

Any ideas?

Thanks

KS
 

10 More Discussions You Might Find Interesting

1. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

2. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

3. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

4. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

5. UNIX for Advanced & Expert Users

Help on sudo permissions to kill others process

I have to setup a sudo permission for a userA, so he can su to become userB and be able to do ONLY kill -9 on userB owned processes. (2 Replies)
Discussion started by: rizsyd
2 Replies

6. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

7. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

8. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

9. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

10. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
apacheconf(1)						       Apache configuration						     apacheconf(1)

NAME
apacheconf - Apache configuration utility SYNTAX
apacheconf DESCRIPTION
This is a new graphical tool to configure the common web server Apache in an easy and simple way. It supports the basic configuration options and even allows to set up multiple virtual hosts. OPTIONS
None FILES
/usr/bin/apacheconf /usr/share/apacheconf/* /etc/alchemist/switchboard/apache.switchboard.adl /etc/alchemist/namespace/apache/local.adl /etc/alchemist/namespace/apache/rpm.adl /var/cache/alchemist/apache/* EXAMPLES
To run this program simply type: apacheconf SEE ALSO
httpd(8) BUGS
Not all possible checks for correct values are done yet. The current /etc/httpd/conf/httpd.conf file is NOT parsed, so changing the configuration with apacheconf will overwrite any manual changes to the httpd.conf file or the changes done with apacheconf are discarded. In case of overwriting the manually editied file a backup file will be generated. AUTHORS
Jonathan Blandford <jrb@redhat.com> Philipp Knirsch <pknirsch@redhat.com> Philipp Knirsch 0.63 apacheconf(1)
All times are GMT -4. The time now is 08:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy