- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with granting root privledges -
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-28-2002 10:35 AM
08-28-2002 10:35 AM
We have 'suroot' which is on our 10.20 systems but I need something for 11.11.
Does anyone know anything about Sudo? I did download it from the portal but only saw 11.0 version, I downloaded it anyways but had a few errors on the install.
Does this sound like what I need or is there something better?
Again I want to be able to track what the user does when they sudo or suroot. I also want them to use their own password so they don't know the root password.
Thx..Angie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:41 AM
08-28-2002 10:41 AM
Re: Help with granting root privledges -
Here is the main web site for sudo:
http://www.courtesan.com/sudo/
Your best bet for 11.11 will probably be to download the source and compile it yourself. I haven't seen any precompiled depots for 11.11 yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:42 AM
08-28-2002 10:42 AM
Re: Help with granting root privledges -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:43 AM
08-28-2002 10:43 AM
Re: Help with granting root privledges -
Have a look at the main web page. There is all sorts in there
Installation
troubleshooting
manual pages
http://www.courtesan.com/sudo/
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:43 AM
08-28-2002 10:43 AM
Re: Help with granting root privledges -
As there are many ways to implement this, The easiest way that I did this was to create a second user with root's UID of 0. This then gave them access to root privliges that they needed. Thus, the user is logging in as themselves, and not root. As far as tracking what they do, First place to reference, the .sh_history file in their home dir.
Just my $.02 worth
Mike-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:45 AM
08-28-2002 10:45 AM
Re: Help with granting root privledges -
Well I feel stupid asking this question but I don't know how to compile. How hard is that to do for 11.11?
Thx!
Angie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:54 AM
08-28-2002 10:54 AM
Re: Help with granting root privledges -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:59 AM
08-28-2002 10:59 AM
Re: Help with granting root privledges -
Thx again!
Angie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 11:28 AM
08-28-2002 11:28 AM
Re: Help with granting root privledges -
In my case though I had a set list of tasks that I wanted ops to run so I placed them in a "trapped" menu and set each task up as scripts with the sudo command being the menu option calling that script and then cancelling the sudo ability (-k option I think) as soon as the task was finished.
SUDO can be set to always request the user to re-enter their password before starting the command - that way if they forget to lock their terminal or logout no-one else can run their sudo options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 01:16 PM
08-28-2002 01:16 PM
Re: Help with granting root privledges -
Look at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0ca672234586d5118ff00090279cd0f9,00.html
There are some good pointers (from me and others, on how to set up sudo.)
The disable-root-sudo option during configuration will prevent the problem Nick was talking about with gaining root access.
When you download the sudo source, the "INSTALL" file in the tarball as all the configuration time options you may need. If you find an option you have forgotten, chances are that they are in the man page for 'sudoers' under flags. The format in visudo will be:
Defaults mail_always
for example.
sudo works great. you just enable the users for what they really need and let them go. Then you never have to worry about the root password, and you can watch what they are doing.
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 04:14 PM
08-28-2002 04:14 PM
Re: Help with granting root privledges -
NOTE: there is a packaging error with the current version (actually, it may be a bug in swinstall). When you setup a depot and load sudo, you'll get an error about invalid user/group ID and it exits saying that the package is corrupt. The problem (I think it is a bug in swinstall) is due to the INFO file in the sudo-RUN directory. At the top of the INFO file, there is the settings for sudo (mode, owner). The owner and group are both 0, but customarily, these have always been symbolic names like root or sys.
Apparently, swinstall doesn't like a number so by manually editing the INFO file at the location where the sudo program is assigned ownership, the error goes away. It has been reported to HP.
sudo has the ability to limit the actual commands that are allowed or explicitly exclude certain commands. Even the parameters for commands may be restricted.
Once sudo is in place, remove *ALL* alternate root users (other IDs with UID 0)
Here are a few other ideas on controlling root access:
To truly control users from making dumb mistakes, create a new group just for su, perhaps called suroot. Then add only your trained sysadmins to that group, and finally, do this:
echo "SU_ROOT_GROUP=suroot" >> /etc/default/security
Now, even if casual users know the root password, they cannot use su to gain root access. Protect root privileges even further with:
echo "console" > /etc/securetty
Now, root cannot login anywhere except the system console.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 09:04 PM
08-28-2002 09:04 PM
Re: Help with granting root privledges -
But seriously, the suroot idea is a very good one.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2002 07:49 AM
08-29-2002 07:49 AM