- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restrict who can su to 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
02-14-2001 11:40 AM
02-14-2001 11:40 AM
I haven't read, heard or found anything of the sort? We will monitor the sulog file but it would be nice to say who is allowed to su to root.
Any input would be greatly appreciated. I am new to the forum - but I will give points, just haven't asked many questions yet :)
Peg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 11:48 AM
02-14-2001 11:48 AM
Re: Restrict who can su to root?
There is now way that I know of to restrict the su capability that is native to HP-UX. The easiest thing that comes to mind is just not giving out the password. If you don't want them to do a 'su -' then why give them the password?
Another option you have though is to use the product called 'sudo'. You can get it from the HP-UX Porting center. Here is a link to it:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/
Sudo allows you to set people up with the capability to run things with root capability without having to give out the root password or give out full 'su -' access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 11:54 AM
02-14-2001 11:54 AM
Re: Restrict who can su to root?
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 12:06 PM
02-14-2001 12:06 PM
Re: Restrict who can su to root?
http://www.courtesan.com/sudo
Good luck,
Jason V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 12:30 PM
02-14-2001 12:30 PM
Re: Restrict who can su to root?
Thanks. I did use that site since it is considered the authoritative site for sudo. Our system is actually in really good shape security-wise. You would not believe all the services that have been turned off on these systems.
I was just hoping and dreaming of an su.allow file :) just like I'm hoping someone will answer my question on how to really make sense of trusted audit logs :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 12:50 PM
02-14-2001 12:50 PM
SolutionCmnd_Alias SU=/usr/bin/su, !/usr/bin/su *root*, !/usr/bin/su "",!/usr/bin/su -
Also, I have put in something for rlogin as well. If you are root one one system and do rlogin to another system, you are root on the other system as well.
The above Cmnd_Alias will prevent specified users from becoming UID=0 unless they are in the sudoers file as having the rights to UID=0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 01:04 PM
02-14-2001 01:04 PM
Re: Restrict who can su to root?
Thank you for wading through my fixation on su.allow (and thanks to others to for pointing to sudo). That is exactly what I need - have never use sudo in that manner but you have answered my question!
Thanks again everyone....what a great group.
Peg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 04:38 AM
02-21-2001 04:38 AM
Re: Restrict who can su to root?
One way to restrict who can su root is to take world permission off the su binary, and create a group of people allowed to run su. The only problem is this will stop people su-ing between normal accounts unless they are in the group.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 05:34 AM
02-21-2001 05:34 AM
Re: Restrict who can su to root?
Create a file in /usr/sbin/su
with :-
----------CUT HERE-------------
if [ `id|cut -c5-11` != "0(root)" ]
then
echo "Sorry"
echo "Root user only\n"
exit 1
fi
/usr/bin/su
----------CUT HERE------------
As /usr/sbin is earlier in the path then a user will pick up the /usr/sbin version of su and if the user is not root the the real su command will not be presented.
I use a version of this to prevent top being run by users other that root.
Just an idea
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2001 06:47 AM
04-04-2001 06:47 AM
Re: Restrict who can su to root?
As someone mentioned.
chgrp wheel /usr/bin/su;
chmod o-rwx /usr/bin/su
is a substitute.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2001 11:35 PM
04-30-2001 11:35 PM
Re: Restrict who can su to root?
I wrote this for a bank and so probably can't publish it, but if you are interested in how I did it, then please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 01:45 AM
05-01-2001 01:45 AM
Re: Restrict who can su to root?
the best script/program/tool limiting su to root I can think of is:
passwd
Thierry ;-)