- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root access
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
08-22-2002 12:11 PM
08-22-2002 12:11 PM
root access
Oracle DBA is working on express server installtion. He says he needs to login as root to shutdown and startup the express server. The script checks if the user is not root i terminates. The documentation says the user should logon as root to run the startup script.
We do not like anyone to get the root password. Is there any work around on this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 12:15 PM
08-22-2002 12:15 PM
Re: root access
Install sudo which allows you to give root access to normal users. Search for sudo in HP software public domain as well as in this forum for more info.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 12:17 PM
08-22-2002 12:17 PM
Re: root access
You can use sudo, free & downloadable from hp porting site to give your access to commands that can be run as root.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/
Or you can use licensed softwares like powerbroker, trial download available from their website,
http://www.symark.com
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 12:18 PM
08-22-2002 12:18 PM
Re: root access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 12:19 PM
08-22-2002 12:19 PM
Re: root access
sudo allows users to "su" to any other account provided that they have access to do so (defined by root).
SUDO supports ACL's, aliases, extensive logging, and more.
I use sudo daily as engineers have to be able to mount cdroms in hp-ux. (get with it HP, vold is where it's at he hem). I wrote a script that lets them mount a cdrom, and umount the cdrom, so no more phone calls and whining! ;)
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 12:30 PM
08-22-2002 12:30 PM
Re: root access
chown root:bin <scriptname>
chmod 4755 <scriptname>
Not the wisest idea for security, however, it's better than giving out the root password in my opinion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 08:28 PM
08-22-2002 08:28 PM
Re: root access
Turn the startup and shutdown commands into a script.
startexpress.sh
stopexpress.sh
chown root:
chmod 4550 startexpress.sh
====
I tired to do a little more research on the Orale side about Express Server .. and everything I can find also says that the 'Service' has to be started as root.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 09:21 PM
08-22-2002 09:21 PM
Re: root access
Using setuid on shell scripts does not work. This is a security loophole that was closed many years ago. Setuid only works on binaries. (To prove, try running a root-setuid script as another user that does an "id" command or a "whoami" command).
As far as I can see you need to do 2 things:
* create or use a DBA user on your system and add this to /etc/shutdown.allow - a standard feature of HP-UX
* use SUDO (or some other equivalent) to run the ORACLE installation - indeed you must be root to run the installation
Hope this helps,
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 12:22 AM
08-23-2002 12:22 AM
Re: root access
I suugested a solution we use here,i.e. have a C program that callls the script.
the binary will be ownned by root with setuid bit.
+ use ACL to protect the binary.
check :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4b0857bd90a9d611abdb0090277a778c,00.html
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 05:24 AM
08-23-2002 05:24 AM
Re: root access
SUID scripts WILL work provided certain rules are followed. USe #!/sbin/sh as the first line, set path to trusted paths (i.e. PATH=/usr/bin:/usr/sbin), and chmod 4755.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 05:57 AM
08-23-2002 05:57 AM
Re: root access
Sudu runs the command as root, but the user never has the root password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2002 05:57 AM
08-23-2002 05:57 AM
Re: root access
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B8339-90030/B8339-90030_top.html&con=/hpux/onlinedocs/B8339-90030/00/00/7-con.html&toc=/hpux/onlinedocs/B8339-90030/00/00/7-toc.html&searchterms=scm&queryid=20020823-070205