The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-19-2008
dave123 dave123 is offline
Registered User
 

Join Date: Dec 2007
Posts: 45
ask for root password

Hey all me again, what do i need to put in my script to check for root privalges and if not then ask for them, what ive got so far is, thankyou in advance for any help.

if [ $(whoami) = "root" ]
then
?????????????????????
then
Reply With Quote
Remove advertisements
!!
Forum Sponsor