Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A fix for an iTunes 6.0.1 command line install bug' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A fix for an iTunes 6.0.1 command line install bug
Authored by: plambert on Dec 16, '05 11:52:08AM

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.

[ Reply to This | # ]

A fix for an iTunes 6.0.1 command line install bug
Authored by: Johnny_B on Dec 16, '05 06:13:39PM

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.



[ Reply to This | # ]