|
|
The Unix Way
To allow starting of apache without a password hardcoded in a script (among the most insecure things you can do, btw), you should use sudo's NOPASSWD option. Use visudo to edit /etc/sudoers and add the line:
(you'll need to change USERNAME to your short username).
If you want all admin users to be able to restart apache without password, do:
Also, as another user pointed out, the startup items are only run when you login, not at boot. To run something when the machine boots, add it to your crontab using the @reboot keyword. Use crontab -e to edit crontab and add the line:
Though at this point, you might just want to edit /System/Library/StartupItems/Apache to always startup apache, regardless of the config. I'm not sure what the bug is that makes it not work after a power failure, but just making the StartService function read:
would probably do the trick.
-Esme |
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.09 seconds |
|