|
|
A fix for an iTunes 6.0.1 command line install bug
The reason that
---
A fix for an iTunes 6.0.1 command line install bug
Not exactly true. The "su" command simply runs a shell or command as another user, if you have the target user's password. The "sudo" command does the same, but first consults a configuration file which by default only requires the originating user's password (and, on Mac OS X, only allows sudo access for users in the "admin" group). The Installer.app GUI will run the installation as root, and so the "su" becomes the user in question, runs that command, and then continues on in the script. If you are running "softwareupdate" not as root, the "su" will fail, because it's asking for root's password, not yours, and root doesn't have a valid password by default on Mac OS X. Plus, it'll just turn around and run the following command as you again.
A fix for an iTunes 6.0.1 command line install bug
The script is run as root. cron is runned as root. I actually use an easy perl socket server which runs as root and when it gets daily/weekly/monthly it will run these script. In the weekly script, I've included softwareupdate. The perl server is started with a StartupItem which is runned as root. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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.29 seconds |
|