- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Prevent direct login (su only)
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
05-29-2003 09:26 AM
05-29-2003 09:26 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 10:17 AM
05-29-2003 10:17 AM
Re: Prevent direct login (su only)
and set up your /etc/sudoers file like so:
USER_ALIAS ORACLE = user1, user2
ORACLE ALL = /usr/bin/su - oracle
Then, any of the users you have listed in the ORACLE USER_ALIAS can get a login shell as oracle by typing in:
sudo su - oracle
Set the password field in /etc/passwd to "*" to disable login access to the oracle account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 10:56 AM
05-29-2003 10:56 AM
Re: Prevent direct login (su only)
Take a look at this question.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7924cbaac6dcd5118ff40090279cd0f9,00.html
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 08:56 AM
05-30-2003 08:56 AM
Re: Prevent direct login (su only)
(It also irritates the DBA's!)
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 10:10 AM
05-30-2003 10:10 AM
SolutionIn /etc/profile or /etc/csh.login include a quick hack that terminates the shell if the $(logname) matches a list of restricted users.
/etc/profile:
tty -s && grep -q $(logname) /etc/login.deny && exit 0
As of patch bundle March 2003, the logname command fails for ttys using the pts driver (ssh). The tels driver is okay (telnet). So you may also concider testing the ownership of the tty:
tty -s && grep -q $(id -un) /etc/login.deny && test -O $(tty) && exit 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 10:13 AM
05-30-2003 10:13 AM
Re: Prevent direct login (su only)
What did your security auditor say about doing this the system login profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2003 06:15 AM
05-31-2003 06:15 AM
Re: Prevent direct login (su only)
Alternatively, you may wish to use "PowerBroker" software from Symark.
www.symark.com/powerbroker.htm
This will allow you to delegate these privileges to other users. It will authenticate the end-user. It will help to keep an Audit Trail of the activity carried out.
Hope this helps.
Regards...
Suhas
Have a look at this link.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0af4585fae8bd711abdc0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 10:00 AM
06-02-2003 10:00 AM