HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- allow sudo for www user to run root shell script
Operating System - Linux
1826073
Members
3636
Online
109690
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-25-2005 04:09 PM
07-25-2005 04:09 PM
Re: allow sudo for www user to run root shell script
As a side note, I've found it much easier to use the web to initiate jobs in a safe way.
I have a data file that can have lines in it indicating scripts to run, even parameters. Certain priviledged users get to log in and click some buttons, perhaps even fill in some fields.
They press submit and the job file is updated. These very special users can also look at what they have ready to run.
A cron job that runs once a minute checks this very same data file. If it finds relavent data, it fires up the cron job and changes the status on the job to running.
When ps -ef indicates the job is no longer running the job file is once again modified by another subroutine of the cron job.
My metholodolgy is duplicated in some commercial products with a better interface and fancier figures. It does however accomplish the task that you have apparently already completed in a way that is a bit more secure and manageble.
Just a bit of post job done kibbutzing prior to leaving the country.
Regards,
SEP
I have a data file that can have lines in it indicating scripts to run, even parameters. Certain priviledged users get to log in and click some buttons, perhaps even fill in some fields.
They press submit and the job file is updated. These very special users can also look at what they have ready to run.
A cron job that runs once a minute checks this very same data file. If it finds relavent data, it fires up the cron job and changes the status on the job to running.
When ps -ef indicates the job is no longer running the job file is once again modified by another subroutine of the cron job.
My metholodolgy is duplicated in some commercial products with a better interface and fancier figures. It does however accomplish the task that you have apparently already completed in a way that is a bit more secure and manageble.
Just a bit of post job done kibbutzing prior to leaving the country.
Regards,
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
07-25-2005 04:22 PM
07-25-2005 04:22 PM
Re: allow sudo for www user to run root shell script
I used to do this for access from a billing system to root-required processes.
There's a certain nicety however for being able to press a button and have it done *now*..
But as there are security holes both ways *shrug* it makes very little difference which is implemented.
There's a certain nicety however for being able to press a button and have it done *now*..
But as there are security holes both ways *shrug* it makes very little difference which is implemented.
One long-haired git at your service...
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP