The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
ask for root password
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
ask for root password
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
01-19-2008
dave123
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
Remove advertisements
The UNIX and Linux Forums
!!
Forum Sponsor
dave123
View Public Profile
Find all posts by dave123