- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Secure Shared Accounts
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
04-24-2001 06:51 AM
04-24-2001 06:51 AM
and then access shared accounts (i.e. Oracle,
SIDs under Oracle). If there is some COTS or
some scripting/etc please adivse. We are using
10.20 and 11.0 right now.
Can't use Sudo (as far as I know) as the users have
to stay in the environment rather than just submit
commands to it.
Any help would be appreciated., Tks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 06:56 AM
04-24-2001 06:56 AM
Re: Secure Shared Accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 07:05 AM
04-24-2001 07:05 AM
Re: Secure Shared Accounts
Why don't you use sudo to do something like "su - oracle" as root ?
Regards,
Patrice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 11:10 AM
04-24-2001 11:10 AM
Re: Secure Shared Accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 11:20 AM
04-24-2001 11:20 AM
SolutionWe have a line set up in our sudoers file like:
Cmnd_Alias ORACLE=/usr/uprc/scripts/Oracle
then we set up the users like:
userid machine_name=ORACLE
The Oracle script does the following to switch to the oracle user at a shell prompt and the user can the do whatever he/she needs to do.
#!/bin/sh
if [ `/usr/ucb/whoami` = "root" ]
then
newuser=`basename $0| sed -e "s/^O/o/"`
/bin/echo "Changing to user $newuser"
exec /bin/su - $newuser
else
exec /usr/uprc/bin/sudo /usr/uprc/scripts/`basename $0`
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 12:26 PM
04-24-2001 12:26 PM
Re: Secure Shared Accounts
To do this via FTP every couple of minutes is crazy! This is a very tedious mechanism for transfering 1 file( unless it is HUGE!).
Download and install SAMBA, and read the docs. You can use smbclient to access a windows share directly, and therefor write a script to run via cron. Since smbclient is very similar to ftp the smbclient may not be the most effective mechanism.
The most effective method is to create a samba share, and mount that on windblows. have the windblows program dumping a file dump to the mapped drive.
Read the docs for SAMBA, and you will learn all you need. pretty basic though...
If you have to use smbclient, then it is a bit better than ftp, because it is completely control the scripts from the UNIX box, without adding software to windblows!
Read the docs for smbclient, and you'll be off and running...
Regards
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 02:31 PM
04-24-2001 02:31 PM
Re: Secure Shared Accounts
default Oracle install does what you want. Oracle will allow read access to the files needed to execute things
like SQLPlus, SQLLoader and other command line utilities.
Actual updates to the database are done by processes
running under the Oracle userid.
You may want to open up the udump directories for
access by all users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 04:38 PM
04-24-2001 04:38 PM
Re: Secure Shared Accounts
Anyway, with this one, I agree that you can use sudo to su - oracle. Sudo may be overkill though, if the users already have the password to oracle. If they do, a su '-' oracle loads the environment for the user after the '-' sign.
This may or may not suite your needs however. If it is because you have users running scripts, remember that you can use sudo to have them run the scripts as oracle, just as a binary. sudo is much more flexible than people thing until they use it! :)
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2001 04:54 AM
04-30-2001 04:54 AM
Re: Secure Shared Accounts
Pertaining to keeping a standard environment, you can easily set things like PATH, etc. in either the build or the sudoers file.
Good luck.
http://www.courtesan.com/sudo/man/sudoers.html
http://www.courtesan.com/sudo/install.html