Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



 
 
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average. Display Modes
Prev Previous Post   Next Post Next
Old 07-27-2005, 06:41 AM   #1
brad_GNET
Registered User
 
Join Date: Jul 2005
Posts: 1
Need to sudo in shell script without password prompt...

Hello

I've written a shell script to alter a prefs file, which works great when you're sat in front of the Mac and can type in the password.

However I now need to roll this out across a number of other Macs. My plan was to do this over remote desktop.
This requires that the script runs without prompting for a password.
My plan was to change the shell user to the admin user that has an account on every Mac, then sudo up from there (since the password is consistent and can be included in the script). As yet I cannot pipe the password into sudo so it doesn't prompt for a password.

Any help very much appreciated...
brad_GNET is offline   Reply With Quote
 

Thread Tools
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

Forum Jump


All times are GMT -5. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.
You Rated this Thread: