- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to Prevent Login to Oracle acct
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-24-2006 01:47 AM
05-24-2006 01:47 AM
I am running HPUX 11i. I know I can add a test to the login script but there must be a way to restrict normal logins using somthing similar to what is done with root login.
We want the user to log into the system as themselves then su to oracle.
Is there a way to prevent this user from logging directly into oracle through security or pam?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 01:52 AM
05-24-2006 01:52 AM
Re: How to Prevent Login to Oracle acct
Then install sudo and write a little script that does:
# cat sudo_oracle
#!/usr/bin/sh
sudo su - oracle
Add the users to the sudo configuration and force them to use the above script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 02:14 AM
05-24-2006 02:14 AM
Re: How to Prevent Login to Oracle acct
whoisit="$(who -m | awk '{print $1}')"
if [ "${whoisit}" = "oracle" ]
then
echo "Direct login not possible, logon as your account and use su - oracle"
exit 1
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 02:20 AM
05-24-2006 02:20 AM
Solutionthis is how we do it for root and oracle :
loginid=`who am i | awk '{print $1}'`
echo $loginid
if [ $loginid = oracle ]
then
exit
fi
echo $loginid
if [ $loginid = root ]
then
exit
fi
These lines are to be added in /etc/profile
You can change the id to whatever you want to restrict , then the suer will ahve to su to the the id .
or
look at this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=960227
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 02:29 AM
05-24-2006 02:29 AM
Re: How to Prevent Login to Oracle acct
Role Based Access Control
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 08:17 PM
05-24-2006 08:17 PM
Re: How to Prevent Login to Oracle acct
The trouble with adding anything into the .profile of a user, even oracle and root, is that once the user has finally su - to the "super user" then they can just change the .profile back to how it was. You may never notice!
May well be worth thinking about sudo.
Just a thought.
JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 09:40 PM
05-24-2006 09:40 PM
Re: How to Prevent Login to Oracle acct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2006 10:57 PM
05-29-2006 10:57 PM