- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to deny su from regular unix account
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
10-30-2002 12:43 AM
10-30-2002 12:43 AM
how to deny su from regular unix account
to do su or su - , is their some mechanism
I can use like su.deny and how to do implement
that ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 12:55 AM
10-30-2002 12:55 AM
Re: how to deny su from regular unix account
There isn't a facility like su.deny. Prevention of su relies on the user not knowing the other account's password.
If they do know the password then there's nothing to prevent them logging in as that user anyway so I'm not sure what you're trying to achieve.
Depending on circumstances, it may be possible to replace su with a script which checks various things before calling the proper su.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:02 AM
10-30-2002 01:02 AM
Re: how to deny su from regular unix account
but that means you must be faced with a login prompt. Unfortunetaly it is possible to bypass the menu when login in with su username and provide the known password, as this does not
load the environment the user gets a prompt
instead of a menu. I would like to close this
gap if poss. Any ideas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:02 AM
10-30-2002 01:02 AM
Re: how to deny su from regular unix account
There is no way to do that. Except for not giving the root password.
Use sudo for this.
You will find the latest version here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/
With sudo you are able to give certain users the possibility to do things as root, and deny this to other users.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:06 AM
10-30-2002 01:06 AM
Re: how to deny su from regular unix account
There is no easy way to do this. A couple of suggestions can be found in the following thread : http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xaf7e37f45ef7d4118fef0090279cd0f9,00.html
Note that there is a logfile /var/adm/sulog. It might not be possible to disable su, but it is definitely possible to log (and take action on) the use of su.
Hope this helps,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:06 AM
10-30-2002 01:06 AM
Re: how to deny su from regular unix account
Read this thread before installing the sudo version I mentioned.
There is a small installation problem with this depot.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe485c7609e9d61190050090279cd0f9,00.html
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:07 AM
10-30-2002 01:07 AM
Re: how to deny su from regular unix account
Su default permissions is :-
-r-sr-xr-x
If you change permisions and remove the execute then su can be controled, but it will be system wide.
Best is to do a system wide password change and keep the passwords away from the users you wish to control.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:15 AM
10-30-2002 01:15 AM
Re: how to deny su from regular unix account
This, together with checking sulog, allows to keep track of who is su-ing.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:16 AM
10-30-2002 01:16 AM
Re: how to deny su from regular unix account
Regards,
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2002 05:57 AM
10-31-2002 05:57 AM
Re: how to deny su from regular unix account
# grep su /etc/group
sugrp::###:acct1,acct2
# cat /etc/default/security
SU_ROOT_GROUP=sugrp
Any attempt to use su by a user who is not in the su group will get a message and access will be denied.