- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restricting su
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
09-18-2003 01:42 AM
09-18-2003 01:42 AM
I want to allow
su - user1
but
su - user2
should be denied.
Regards
Rainer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:50 AM
09-18-2003 01:50 AM
Re: restricting su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 02:06 AM
09-18-2003 02:06 AM
Re: restricting su
for non-root users this is easy : keep user2's password secret ;-)
for root : you could test in user2's .profile on 'who am i' which still reflects the original user.
But 'su user2' (without the minus) will pass this again :(
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 02:47 AM
09-18-2003 02:47 AM
Re: restricting su
I think there is only one way (when not using an external produkt) to solve this. Current permissions are :
-r-sr-xr-x 1 root root 24576 Aug 6 1998 /usr/bin/su
change them to :
-r-sr-x--- 1 root sugroup 24576 Aug 6 1998 /usr/bin/su
Now you create a sugroup in the /etc/group. Make the members that are allowed to examine su member of the group sugroup.
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 03:16 AM
09-18-2003 03:16 AM
Re: restricting su
I do not want to restrict the use of su (any user is allowed to use it) but I need to restrict the target user called by su. There is a list of users which are only allowed to do a regular login, the use of su to gain this users priviliges is not allowed. (Of course this is a demand from our audit people so let's not debate about the sense of this demand)
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 04:09 AM
09-18-2003 04:09 AM
Re: restricting su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 04:31 AM
09-18-2003 04:31 AM
SolutionFirst, disable all access to /usr/bin/su
# chmod go-rwx /usr/bin/su
Then add the following to /etc/sudoers
ALL ALL = NOPASSWD : /usr/bin/su
Then to su, your users run:
sudo su
If
This also has the side benifit of loggin all su activity, including unauthorized attempts.
See the sudoers man page for the specific syntax.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 04:48 AM
09-18-2003 04:48 AM
Re: restricting su
"sudo" lets you have more control over what users can do as other users.
Or
DON'T give out users passwords and change them immediately when a problem is discovered.
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 04:52 AM
09-18-2003 04:52 AM
Re: restricting su
Sorry for the misunderstanding. I do this using "eTrust Access Control" from CA. It works perfect for your question.
Also other sudo tools work great with it. From a standard OS without extra tooling this will not be possible.
Regs David