|
|
sudo and you
If you're going to let this script run in the background, take note:
then again ...
You should never put your admin password in an AppleScript, anyway. ;-)
Revisited
Interesting. (about sudo -K) I'm new to unix, by the way. And learn new things each day :)
I revised the script to display a dialog to enter the admin password instead. And added a dialog at the end. Still the dialog doesn't contain complete log. So, here it is:
display dialog "enter your admin password:" default answer "" set admin_password to (text returned of result) do shell script "sudo -K diskutil repairPermissions /" ¬ password admin_password with administrator privileges set rp_log to (do shell script "sudo -K diskutil repairPermissions /") display dialog rp_logIs this how we use the sudo -K, by the way, Mike?
Revisited
Enter: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|