Linux / UNIX Tech Support Forum
This is a discussion on Grant Start / Stop Apache Server Permission to Normal User within the Web servers forums, part of the Mastering Servers category; Hi nixcraft currently i can start my Apache server as root(I installed apache as root user) I am using "service ...
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi nixcraft
currently i can start my Apache server as root(I installed apache as root user) I am using "service httpd start" on red hat 4 as a root user to start the server, is it possible to start stop and get complete access as an user. In other words i want to run apache as user with accesses like starting stopping and modifying httpd.conf file. please guide thanks tanweer |
| Sponsored Links | ||
|
|
|
||||
|
Yes, it is possible to run following command as normal users using sudo (super user do) commands. You need to type following command as root user to grant permissions. Let us grant user vivek start stop and edit permissions.
Use visudo command edit to edit the config file: Code:
visudo Code:
vivek localhost=/sbin/service httpd start,/sbin/service httpd stop, /sbin/service httpd restart vivek localhost=/bin/vi /etc/httpd/conf/httpd.conf Code:
sudo /sbin/service httpd restart Code:
/bin/vi /etc/httpd/conf/httpd.conf See sudo tutorial for more info: Allow a normal user to run commands as root under Linux / UNIX operating systems However, I do not recommend editing file using vi as user can edit any other files too. This is may result into security issues! Just provide restart and other perms.
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 11-27-2008 at 11:11 PM. |
|
|||
|
thank you very much vivek for the information..
suppose I have 10 users and each user wants to start stop his own apache without disturbing other users. is it possible to do so? is it possible to build apache for each user? |
![]() |
| Tags |
| apache , httpd , sudo |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| process start stop on web | asim.mcp | CentOS / RHEL / Fedora | 1 | 12-16-2008 12:49 PM |
| Failed to start the X server (your graphical user interface) | zillah | Linux software | 1 | 12-24-2007 04:57 PM |
| Add normal user / FTP user usein NORMAL user(non-root) | anilvrathod | Shell scripting | 0 | 12-07-2007 06:04 PM |
| start and stop service in crontab. | gthian | Shell scripting | 7 | 05-31-2007 11:04 AM |
| start up and stop the running script | mala_un | Shell scripting | 9 | 07-26-2006 07:10 AM |