- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to disable su login (su or su -) in hpux
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-16-2010 02:21 AM
тАО03-16-2010 02:21 AM
I would like to disable the su login (su or su -) in hpux.
Is it possible.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 02:49 AM
тАО03-16-2010 02:49 AM
Re: How to disable su login (su or su -) in hpux
# chmod 000 /usr/bin/su
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:28 AM
тАО03-16-2010 05:28 AM
Re: How to disable su login (su or su -) in hpux
'su' or 'su -' to which accounts?
The easiest way: Don't give out the passwords for the accounts you don't want users 'su'ing to.
I would DEFINITELY NOT change any permission on the 'su' program. That is asking for trouble. If you do that, then any scripts (especially startup scripts) that may do an 'su' to a different user will FAIL.
The problem is not the ability to 'su'. The problem, likely, is too many people having too many passwords.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:48 AM
тАО03-16-2010 05:48 AM
Re: How to disable su login (su or su -) in hpux
To disable su - for root, you change the pam configuration of the system.
To disable users from using su you have other options.
You can set users up in a group that excludes execute permissions on the binary.
But I strongly recommend you not change permissions on the binary itself.
If you make the request more precise, I can assist you further.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:38 AM
тАО03-16-2010 06:38 AM
Re: How to disable su login (su or su -) in hpux
How to disable the sulogin for all users by using pam configuration?
How to disable the sulogin for set of users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 08:02 PM
тАО03-16-2010 08:02 PM
Re: How to disable su login (su or su -) in hpux
A more secure approach is to require your administrators to have a named account on the system, forcing them to log in, preferably using ssh, which is configured to log the connection in syslog.
That user must then su - to become root, enterring the password through a secure connection, also proving who it was who performed the account. Thus you will have identity, authentication, and authorisation as well as accountability.
The best way to limit who can use su is via the /etc/pam.conf, however you should add the "pam_hpsec.so.1" option as an additional directive and under /etc/default/security, find the "SU_ROOT_GROUP" and set a "wheel" group. Users must be in this group tu su to root.
Here are the pam.conf directives relating to su.
su auth required libpam_hpsec.so.1 bypass_setaud
su auth required libpam_updbe.so.1
su auth sufficient libpam_krb5.so.1
su auth required libpam_unix.so.1 try_first_pass
su account required libpam_hpsec.so.1
su account required libpam_updbe.so.1
su account required libpam_authz.so.1
su account sufficient libpam_krb5.so.1
su account required libpam_unix.so.1
Note, in my case, there is also pam_authz and pam_krb5, as non-local users authenticate against a windows AD using Kerberos, and authorization is controlled with the Pam_AUTHZ module limiting local login access to members of a specific domain group.
If you weren't planning on implementing something like AD authentication, you could also use pam_authz to specify that users in the wheel group are the only ones allowed to use the su command. Same pam.conf entry as above. In the /etc/opt/ldpaux/pam_authz.policy file, you would hae an entry like this:
allow:unix_group:wheel
This would allow you to keep the IAAA functionality of su for admins, but remove access for all other local users.
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 12:10 AM
тАО03-17-2010 12:10 AM
Re: How to disable su login (su or su -) in hpux
Do not change permission or delete this file..
Don't share the root passwd to anyone...
Implement sudo access for root....
Suraj