- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scripts in preventing certains users(DBA) from log...
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
11-02-2001 08:44 AM
11-02-2001 08:44 AM
Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 09:03 AM
11-02-2001 09:03 AM
Re: Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
The way we did it:
Put a * in the passwd field for the oracle ID.
Create a script called 'oracle' or something similar that looks like:
/usr/local/bin/sudo su - oracle
and make it executable.
Then set up sudo so that users can execute that script and voila.
Make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 09:13 AM
11-02-2001 09:13 AM
Re: Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
What you can do is disable the login for oracle, but this will disallow all login as oracle. Users can only do a su to oracle. To do this edit /etc/passwd file and put a "*" in tthe 2nd field for oracle.
oracle:*:uid:gid:.....
There is no way to make a set of users being made unable to login as oracle and other set being able to login as oracle through telnet at the same time. I think that is what you are looking for.
If you face any permission problem, you may try looking into "sudo" to give users the superuser capability to run a particual script "oracle" as mentioned above by Patrick.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 09:15 AM
11-02-2001 09:15 AM
Re: Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
If I remember correctly, /etc/profile was modified with an if/then statement to perform this check and let users in or not based on the user name.
Hope this helps.
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 09:48 AM
11-02-2001 09:48 AM
Re: Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
Simple one:
you can add the following check in /etc/profile for
bourne shell
loginid=`logname`
if [ $loginid = oracle ]
then
echo "Only Su login allowed""
exit 1
fi
For CSH, do similar logic
in /etc/csh.login
set loginid=`logname`
if ( $loginid == oracle)
then
echo ""only Su allowed""
exit 1
endif
***
Another method is to
disable oracle account
and setup sudo to login as
oracle.
This is a good security question. Probably a security
guru should be able to come
up with a perfect trick to
do this.
cheers
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 10:57 AM
11-02-2001 10:57 AM
Re: Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
If your using a product like PowerBroker or CA's Access Control this is a very easy thing to implement.
Here is a link to a script that someone wrote to do this as well:
http://www.dutchworks.nl/htbin/hpsysadmin?h=3&dn=49762&q=force%20su&fh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 11:48 AM
11-02-2001 11:48 AM
Re: Scripts in preventing certains users(DBA) from logging in directly. Force to "su"
The easiest way to do this, it to disable the oracle account. This will allow you to do two things. Force the DBA's to login as themselves and then 'su - oracle' and if you have more than one DBA you can track who did what and when.
I have found over the years that DBA's don't give a rats about security, so place them on a harness.
This is the easiest way, but I am a firm believer in using 'sudo' so look into this, as the DBA's will not.
My 2 cents worth
-Michael (AKA - not a DBA fan)