Computing.Net > Forums > Unix > Running a shell script as root

Running a shell script as root

Reply to Message Icon

Original Message
Name: ohuang
Date: May 15, 2008 at 12:41:16 Pacific
Subject: Running a shell script as root
OS: AIX 5.3
CPU/Ram: Unknown
Model/Manufacturer: unknown
Comment:

I'd like to know that if there is a way in AIX to run a shell script as the 'root' user when the launching program is running as a normal non-root user?

Any help would be appreciated!

thanks.


Report Offensive Message For Removal

Response Number 1
Name: nails
Date: May 15, 2008 at 21:08:28 Pacific
Subject: Running a shell script as root
Reply: (edit)

Check out the sudo utility:

http://www.sudo.ws/sudo/

Here's another useful link describing using sudo:

http://aplawrence.com/Basics/sudo.html


Report Offensive Follow Up For Removal

Response Number 2
Name: ohuang
Date: May 21, 2008 at 06:00:49 Pacific
Subject: Running a shell script as root
Reply: (edit)

Thank you!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Running a shell script as root

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software