- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restart 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
тАО07-12-2005 01:03 AM
тАО07-12-2005 01:03 AM
Can I grant access to a normal user to only start apache as root? What are the options available?
thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 01:05 AM
тАО07-12-2005 01:05 AM
Re: restart apache
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 01:10 AM
тАО07-12-2005 01:10 AM
Re: restart apache
when the user needs restart he simply creates this file, naming convention of which needs to be determined by you and the user.
frequency of the cronjob running also needs to be determined by you and the user.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 01:14 AM
тАО07-12-2005 01:14 AM
Re: restart apache
Can I get the step by step procedure required for the sudo configuration for a user to start apache?
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 02:46 AM
тАО07-12-2005 02:46 AM
Solutionhttp://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p7/
uncompress install it using gunzip and swinstall.
after installation is complete, edit /etc/sudoers file and add a line like this
username servername = NOPASSWD: /sbin/init.d/apache apache stop
username servername = NOPASSWD: /sbin/init.d/apache apache start
-or- write a script to do your custom stop and start of apache web server and give the user the capability of running this script only in the sudoers file like this
username servername = NOPASSWD: /my_path/my_script.sh
notes:
1.username is the userid of the user who will be capable of doing this action
2.servername is the hostname of this server
hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 03:33 AM
тАО07-12-2005 03:33 AM
Re: restart apache
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 05:03 PM
тАО07-12-2005 05:03 PM
Re: restart apache
I tried both the options given by you but it is asking for a password.
*****************************************
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type.
Password:
********************************************
I tried giving root password but it take it as a wrong password.
Any idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2005 10:37 PM
тАО07-12-2005 10:37 PM
Re: restart apache
Are you issuing the command as root or as yourself? The intent of sudo is to execute root commands as a non-root user.
Assuming that you are logged in as your username, use your password when prompted.
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 07:04 AM
тАО07-21-2005 07:04 AM
Re: restart apache
Yes. It works.
username servername = NOPASSWD: /sbin/init.d/apache apache start
Earlier I missed a space between NOPASSWD: /usr/init.d/apache.
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 07:05 AM
тАО07-21-2005 07:05 AM