- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- running script as root
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
Forums
Discussions
Discussions
Discussions
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
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
05-24-2005 01:29 AM
05-24-2005 01:29 AM
running script as root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 01:58 AM
05-24-2005 01:58 AM
Re: running script as root
you can use sudo which will run programs as root
all that user has to execute is 'sudo program'
you should have each allowed user name entry in /etc/sudoers file
do man sudo for more information
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 02:01 AM
05-24-2005 02:01 AM
Re: running script as root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 02:08 AM
05-24-2005 02:08 AM
Re: running script as root
No you can explicitly say which programs are allowed to run as root for each user. check man sudoers to find out how to acheive this.
eg:
Cmnd_Alias CMD = /path/to/program
User_Alias USER = user1, user2
USER ALL = NOPASSWD: CMD
NOPASSWD will allow user to run the command without giving their password
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 02:12 AM
05-24-2005 02:12 AM
Re: running script as root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 03:07 AM
05-24-2005 03:07 AM
Re: running script as root
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 03:10 AM
05-24-2005 03:10 AM
Re: running script as root
-rwsr-xr-x 1 root users 6578 May 20 14:25 manarc.shl
Should I flip the group setting back to root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 03:17 AM
05-24-2005 03:17 AM
Re: running script as root
Once upon a time, it used to work, but we're talking back in the 1.2 series kernel days.
These days, you either 'sudo' the entire script (as already suggested).
In any case, make sure the users do not have *write* access (i.e. 0511) to the script file, as this will allow them to do whatever they want under the guise of the script.