- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root privilege commands
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
06-17-2004 04:47 AM
06-17-2004 04:47 AM
root privilege commands
By any chance ,can unix users(non root) use or manipulate the following commands
1.shutdown
2.init
3.syslogd (kill and rerun)
4.stop.
If so how?
I appriciate your help.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 04:52 AM
06-17-2004 04:52 AM
Re: root privilege commands
Except for shutdown, they will not be able to execute these commands except 'stop'. There isn't any command called stop. I believe you meant /sbin/init.d/<script> stop.
If you want them to execute these commands, then you would need to setup 'sudo'. You will need to configure these commands in the sudoers file, the configuration file that sudo uses to grant permissions. Look at the following URL to download.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
You have to be bit careful while configuring the sudoers file as you may inadvertantly open up security holes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 05:16 AM
06-17-2004 05:16 AM
Re: root privilege commands
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 05:24 AM
06-17-2004 05:24 AM
Re: root privilege commands
sam -r
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 05:35 AM
06-17-2004 05:35 AM
Re: root privilege commands
Yes, as others have pointed out, Sudo is a great tool to achieve this. Sudo is part of the Internet Express suite of products, which can be downloaded from:
For HP-UX 11.23: http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123
For HP-UX 11.11:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
HTH.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 05:47 AM
06-17-2004 05:47 AM
Re: root privilege commands
I will say that its okay to allow other users to use shutdown under certain circumstances. its probably not a great idea to let a regular user run the init command.
init changes the system run level and executes a bunch of start and stop scripts.
If oracle starts at run level 4 and you let Joe Schmobagel bring the system to run level 3 that shuts downt he database.
You have to be extremely careful how you strucuture your system.
If you give a user init they can do an init 0 and shut the whole system down. How well are these people trained and if you are giving them this much power, why not the root password?
We sysadmins exist for a reason. One of those reasons is because we know the impact of the commands we're talking about here.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com