The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to pass variables to 3rd party unix menu? ctcuser Shell Programming and Scripting 3 02-21-2005 03:30 PM
Unix Menu program hedrict UNIX for Dummies Questions & Answers 4 02-18-2002 11:19 AM
Menu driven using Ksh krishna UNIX for Advanced & Expert Users 3 10-20-2001 11:28 PM
menu driven ( like pine) on Linux amit High Level Programming 2 10-12-2001 12:30 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-30-2008
ad4m88 ad4m88 is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 8
Menu Driven UNIX Admin

I need to have a script that can do an automated IPL function (how to reboot the box). I think ‘reboot’ would do the trick.

However, how would I go about doing it, for example if the user states from a menu script that I would like to reboot now. The problem is when I do the ‘reboot’ command I get a message (obviously) because I am not the super user. But I do have another gem network in which I have root superuser access.

So how would I from the below script which I need to write whilst I am not in super user mode do the ‘reboot’ command from the normal user mode. Is there a way of having, for example when the user chooses option 1, then it states enter the other gem network root username and password (so i am the superuser) and then be able to do the ‘reboot’ command?

I hope I have not made it difficult to understand for you.

......Code carries on for the other 3 options

Last edited by ad4m88; 03-31-2008 at 12:50 PM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0