Re: Lock homepage in firefox for normal users?[Scanned]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux