- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- use root connection in a Shell script
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
03-08-2006 07:19 PM
03-08-2006 07:19 PM
use root connection in a Shell script
kill -9 some users processes; the problem I face on is that I should allow some users who are not system administrator ( are not supposed to logon as root ) to run this script; then I think off using the "SU -" in the beginning of script the problem is that I don't know how to pass the password (unclearly so that no one could edit the script and pick the pass !)
Thank U
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 07:24 PM
03-08-2006 07:24 PM
Re: use root connection in a Shell script
kill -15
kill -1
kill -2
kill -3
kill -11
and last kill -9
Also, have you heard about sudo? It comes with all logging and perfect such taks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 07:26 PM
03-08-2006 07:26 PM
Re: use root connection in a Shell script
I would suggest use of sudo.
Have a look at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=99848
Also:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:41 AM
03-09-2006 03:41 AM
Re: use root connection in a Shell script
My system run is : HP-UX B.11.11 U 9000/800
could some one help find where to download the suitable depot of sudo for my system ?
Thank U
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:45 AM
03-09-2006 03:45 AM
Re: use root connection in a Shell script
So perhaps the file you got is corrupted....
(happens with ftp sometimes...)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:47 AM
03-09-2006 03:47 AM
Re: use root connection in a Shell script
HP-UX 11.11 is the same 11i v1.
See "HP-UX Internet Express for HP-UX 11i v1" who have sudo for install.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
Schimidt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:25 AM
03-09-2006 08:25 AM
Re: use root connection in a Shell script
# Host alias specification
Host_Alias TRANS = 10.10.10.3
# User alias specification
User_Alias ETUDE = jb
# Cmnd alias specification
Cmnd_Alias KILL = /usr/sbin/debloc
But while exiting I have the following Warnings :
Warning: undeclared Host_Alias `TRANS' referenced near line 9
>>> sudoers file: syntax error, line 8 <<<
Warning: undeclared Host_Alias `ETUDE' referenced near line 11
>>> sudoers file: syntax error, line 10 <<<
Warning: undeclared Host_Alias `KILL' referenced near line 13
What may I do ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 08:09 PM
03-09-2006 08:09 PM
Re: use root connection in a Shell script
with sudoers; I've edit sudoers by visudo and enter aliases :
line 8 # Host alias specification
line 9 Host_Alias TRANS = 10.10.10.3
...
But the problem is that I've the following error :
Warning: undeclared Host_Alias `TRANS' referenced near line 9
>>> sudoers file: syntax error, line 8 <<<
I dont know the raison of that error; could someone help me please!
Thank U in advance