set a safari homepage for all users

I would like to set a Homepage in Safari for all users.  I would  like Safari to open to our school district homepage for whoever logs on.
mcdermkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Thomas GrassiSystems AdministratorCommented:
You need to write a script for all the users

See this link here that might help

http://stackoverflow.com/questions/22842016/launch-shell-script-on-login-in-mac-os-os-x
0
serialbandCommented:
This may be simpler.
If you have existing users you can use the defaults command to set it for each user.

In each user account, you can just use the defaults command to change it.
defaults write com.apple.Safari HomePage http://www.MyDistrictSchoolPage.com

If you have multip users.
for i in List_Of_Users do;   "su - $i defaults write com.apple.Safari HomePage http://www.MyDistrictSchoolPage.com"; done

Open in new window


If you don't have any users yet, you can set the defaults system wide first.
sudo defaults write /Library/Preferences/com.apple.Safari HomePage http://www.MyDisctrictSchoolPage.com

Every user that starts Safari will get that as the initial home page, but they can still change it later.

If you don't want users to change their settings, you should do both of the above then make the user's Safari Preferences file read only or owned by root

chmod -w  ~USER/Library/Preferences/com.apple.Safari.plist
sudo chown root ~USER/Library/Preferences/com.apple.Safari.plist
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.