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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux