- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Limited root permissions to a non-root account on ...
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
08-18-2004 06:41 AM
08-18-2004 06:41 AM
Limited root permissions to a non-root account on trusted system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2004 06:43 AM
08-18-2004 06:43 AM
Re: Limited root permissions to a non-root account on trusted system
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
or set up Restricted SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2004 06:44 AM
08-18-2004 06:44 AM
Re: Limited root permissions to a non-root account on trusted system
You can use restricted sam.
execute sam -r as root, select the user and enable the selected privileges for the user.
Alternative way would be to install SUDO package. Sudo is available for free from the net.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2004 07:09 AM
08-18-2004 07:09 AM
Re: Limited root permissions to a non-root account on trusted system
But if this is for a casual use, sudo is the better option for the unbeatable price of zero :)
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2004 07:32 AM
08-18-2004 07:32 AM
Re: Limited root permissions to a non-root account on trusted system
The non-root user needs root permissions to give a database application utility permissions to kill select DB processes and gracefully remove the records from the database. Using the DB's utility (as non-root user) will show the pid but the utility refuses to delete it without root permission.
I can not use the restricted sam Process Contol to kill the selected process (outside the database) because the rest of the DB's cleanup functions will not happen and the database might become corrupt.
Would sudo help me address this problem?
Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2004 08:31 AM
08-18-2004 08:31 AM
Re: Limited root permissions to a non-root account on trusted system
Create a script as root that does that everything u would like the user to be able to do. You can also limit the users ability in this case by filtering the PIDs inside the script.
For accountablity reasons, you can also log the opetaions performed in the script by the users in a file.
Install sudo and allow the user(s) permission to execute this script as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 03:37 AM
08-19-2004 03:37 AM
Re: Limited root permissions to a non-root account on trusted system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 05:36 PM
08-19-2004 05:36 PM
Re: Limited root permissions to a non-root account on trusted system
Here is a link to the depot file.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
Gunzip the file then use swinstall -s /tmp/filename.depot to install it.
Here is a sample config:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
#Operators
User_Alias OPERATOR =user1, user2
# Cmnd alias specification
#Commands Operators are allowed to run as root
Cmnd_Alias KILL = /usr/bin/kill
Cmnd_Alias RM = /usr/bin/rm
Cmnd_Alias PGP = /opt/pgp/pgp
# Defaults specification
Defaults syslog=auth
# User privilege specification
root ALL=(ALL) ALL
OPERATOR ALL =KILL,PGP
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Hope this helps.
-Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 08:27 AM
08-20-2004 08:27 AM
Re: Limited root permissions to a non-root account on trusted system
I have downloaded the latest sudo software with associated docs and will be installing it on our development server Monday for evaluation prior to use on our validated production server (nothing is ever easy here). Thank you also for the sample config file â that will help a lo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 08:37 AM
08-20-2004 08:37 AM
Re: Limited root permissions to a non-root account on trusted system
%grpname !/usr/bin/su *root*,!/usr/bin/su "", !/usr/bin/su -l,!/usr/bin/su -
I include this entry because I used to have users getting root access to systems and they did not have root passwd - I didn't know how they were doing it. I discovered that they had root access on 1 system. From this 1 system they would do an rlogin to a trusted system. The rlogin would take them to the other system as root! (Not Good)
This entry will prevent the users in the %grpname from becoming root but you can have cmd_aliases that specify the command they are suppose to work with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:34 AM
08-25-2004 03:34 AM
Re: Limited root permissions to a non-root account on trusted system
Good luck.
-B