- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- let a normal user bounce httpd (apache) ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 09:04 PM
тАО11-18-2003 09:04 PM
I have created a normal user (no root privileges) for our webmaster.
I have given him write privileges to the apache-config files, but after changing the config-files he want to bounce the http-daemons.
How can I achieve he doesn't need the root-password to do this ?
Should I create a STOP and START-script, but I need to run these as root, can this be done via SUID-bit (s) ? How does this work ?
Thanks,
Chris MARREEL
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 09:39 PM
тАО11-18-2003 09:39 PM
Re: let a normal user bounce httpd (apache) ?
You may try to add him to apache group, but I'm not sure it'll work either, as httpd starts with root rights, meaning that root, and root only can start it...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 10:16 PM
тАО11-18-2003 10:16 PM
Solutionhttp://www.courtesan.com/sudo/
Alternatively, you need to create a wrapper around your restart command and set the SETUID bit.
This is most likely to be a 'C' program that does a "setuid(0)" and then runs the "apachectl" command. You would set this as SETUID with something like chmod 6755.
Essesntially, SETUID means the program will run with the permissions of the owner of the program. So if the program is owned by root, then it will have root authority. You can not have SETUID scripts any more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 01:00 AM
тАО11-19-2003 01:00 AM
Re: let a normal user bounce httpd (apache) ?
apache runs on poort 80 (-1024 = root poort) if you change it to 8080 you do not need root privaliges to start apache.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 01:01 AM
тАО11-19-2003 01:01 AM
Re: let a normal user bounce httpd (apache) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 01:54 AM
тАО11-19-2003 01:54 AM
Re: let a normal user bounce httpd (apache) ?
You can do this in an automated way, by putting httpd in a chroot jail. The easisest way is to run bastille on your system.
http://www.bastillelinux.org
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2003 01:35 AM
тАО11-20-2003 01:35 AM
Re: let a normal user bounce httpd (apache) ?
I use sudo to allow users to perform tasks like this. You can limit the commands they can execute, as well as the user id the command is performed as.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2003 02:37 AM
тАО11-20-2003 02:37 AM
Re: let a normal user bounce httpd (apache) ?
We have a user called ias. That user owns the apache binaries.
In order for this user to open a process on a port 80, the SUID bit had to be set.'
In other words you were right. We even skpped that part by running apache on port 7777
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2003 04:40 AM
тАО11-20-2003 04:40 AM
Re: let a normal user bounce httpd (apache) ?
I have looked at SUDO, and this indeed is a good tool and easy to configure.
I have added a few lines to the /etc/sudoers :
webmaster ALL=/etc/init.d/httpd stop
webmaster ALL=/etc/init.d/httpd start
webmaster ALL=/etc/init.d/httpd restart
And our webmaster can easily bounce the httpd daemons.
Thanks,
Chris MARREEL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2003 04:55 AM
тАО11-20-2003 04:55 AM
Re: let a normal user bounce httpd (apache) ?
But be aware that your webmaster is root on doing sudo allowed commands.
J