- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Doing root tasks without root access
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-25-2007 07:20 PM
05-25-2007 07:20 PM
I have been asked to do the following jobs without having root/sudo/SAM access or access to command passwd (except for changing my own password)
1) create users
2) change password of other users
3) enable /disable users
4) kill processes not belonging to me/group
Is there any way to do this?
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2007 10:36 PM
05-25-2007 10:36 PM
Re: Doing root tasks without root access
The easiest way is to install and configure sudo, sudo will let you perform admin(root) tasks under your own userid. In you case you would need to configure the root commands useradd, userdel, passwd, usermod and kill.
docs
http://www.courtesan.com/sudo/intro.html
software
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p12/
Regards,
Robert-Jan
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2007 11:17 PM
05-25-2007 11:17 PM
Re: Doing root tasks without root access
Thanks for replying. Unfortunately I will not be able to get sudo rights (makes no sense to me).
The reason why they won't allow me use of passwd is that they think that I can change the password for root. Is it possible to have rights to passwd and not change the root password?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2007 01:29 AM
05-26-2007 01:29 AM
Re: Doing root tasks without root access
you can look at restricted SAM
sam -r to configure.
it allows a user access to only those processes defined to their id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2007 02:34 AM
05-26-2007 02:34 AM
Solutionthe wrapper would examine the userid that you are attempting to change and then either allow it or not.
you can't perform the task specified in the environment you described...(ie no sudo, sam....)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2007 03:01 AM
05-26-2007 03:01 AM
Re: Doing root tasks without root access
You MUST be able to run the commands as root to: create users, change other users passwords, enable/disable users and kill others processes.
Now that being said, one option may be to write a script / program that runs as a setuid program (ie. permissions are something like root:security for owner group and rwsr-x--- for permissions) that will give you menu choices and ask you to enter the appropriate user you wish to modify. This program / script can do a check to see if you enter 'root' for a user name. If you do, it could throw an error.
Access to this could be controlled by creating a "security" group. Whoever needs to run this program / script gets added to the security group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2007 03:45 AM
05-26-2007 03:45 AM
Re: Doing root tasks without root access
Or you use sudo. It is a severe security and stability risk to 'work around' security without sudo. I say stability because an improperly written tool may allow a user to accidentally remove every file in your computer with one command (as root). sudo is mandatory for distributed sysadmin privileges.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2007 07:01 PM
05-27-2007 07:01 PM
Re: Doing root tasks without root access
I am using a package that allows one to do exactly what you are asking for. Not only does it do that but it can be customised for your needs and environment quite easily and is quite easy to maintain. It also logs everything that it does, who issued what command etc.
If you are interested in this email me at djason at mhg dot co dot za and I will put you in touch with this company.