Lock homepage in firefox for normal users?[Scanned]

Keith G. Robertson-Turner fedora-gmane.00002 at genesis-x.nildram.co.uk
Tue Jul 4 20:51:15 UTC 2006


Chris Bradford wrote:
> Is there a way to lock the home page of Firefox for users under FC5?

You could create a cron job that periodically resets all users home
pages, like this:

perl -pi -e 's/user_pref\(\"browser\.startup\.homepage\",
.*/user_pref\(\"browser\.startup\.homepage\"\,
\"http:\/\/www\.google\.co\.uk\"\);/g' `find
/home/*/.mozilla/firefox/*/prefs.js`

(The above is supposed to be all one line, but may be wrapped in your
reader.)

Simply replace google\.co\.uk with whatever you want the default home
page to be, and run the script every so often via cron (once per hour or
whatever).

Or instead of using cron, you could put it in /etc/profile.d/ instead.

-- 
K.
http://slated.org - Slated, Rated & Blogged

Fedora Core release 5 (Bordeaux) on sky, running kernel 2.6.16-1.2133_FC5
 21:49:38 up 16 days, 22:06,  1 user,  load average: 0.00, 0.00, 0.00




More information about the fedora-list mailing list