Difference between revisions of "Firefox"
From Bashlinux
Line 34: | Line 34: | ||
pref("dom.disable_window_open_feature.status",false); |
pref("dom.disable_window_open_feature.status",false); |
||
pref("dom.disable_window_status_change",true); |
pref("dom.disable_window_status_change",true); |
||
+ | </nowiki></pre> |
||
+ | |||
+ | |||
+ | == Run firefox with password protection == |
||
+ | The following procedure ensures Firefox will be launched after prompt him for his own password, this is handled by PAM. |
||
+ | # Move firefox to `sbin` folder and then link it back to its original place |
||
+ | |||
+ | <pre><nowiki> |
||
+ | mv /usr/bin/firefox /usr/sbin/firefox |
||
+ | ln -s /usr/bin/consolehelper /usr/bin/firefox |
||
+ | </nowiki></pre> |
||
+ | |||
+ | # Create a security file on `/etc/security/console.apps/firefox` with the following code |
||
+ | |||
+ | <pre><nowiki> |
||
+ | USER=<user> |
||
+ | PROGRAM=/usr/sbin/firefox |
||
+ | SESSION=True |
||
+ | </nowiki></pre> |
||
+ | |||
+ | # Create a PAM file on `/etc/pam.d/firefox` with the following entries |
||
+ | |||
+ | <pre><nowiki> |
||
+ | #%PAM-1.0 |
||
+ | auth sufficient pam_rootok.so |
||
+ | auth sufficient pam_timestamp.so |
||
+ | auth include system-auth |
||
+ | account required pam_permit.so |
||
+ | session required pam_permit.so |
||
+ | session optional pam_xauth.so |
||
+ | session optional pam_timestamp.so |
||
</nowiki></pre> |
</nowiki></pre> |
Revision as of 02:33, 10 December 2009
Preferences
Allow Pop-ups
Edit `/usr/lib/${FIREFOX_VERSION}/greprefs/all.js` file and ensure the following values
pref("privacy.popups.disable_from_plugins",0); pref("privacy.popups.showPopupBlocker",false);
Add the following values if there are not present
pref("capability.principal.codebase.p0.granted", "UniversalBrowserWrite"); pref("capability.principal.codebase.p0.id", "file://"); pref("capability.principal.codebase.p0.subjectName", ""); pref("privacy.popups.firstTime",false); pref("privacy.popups.policy",1); pref("privacy.popups.showBrowserMessage",false);
And then ensure the following values on `/usr/lib/${FIREFOX_VERSION}/defaults/pref/firefox.js`
pref("privacy.popups.firstTime",false); pref("privacy.popups.showBrowserMessage",false);
Disable status bar
Ensure the following values are present in `/usr/lib/${FIREFOX_VERSION}/greprefs/all.js` file
pref("dom.disable_window_open_feature.status",false); pref("dom.disable_window_status_change",true);
Run firefox with password protection
The following procedure ensures Firefox will be launched after prompt him for his own password, this is handled by PAM.
- Move firefox to `sbin` folder and then link it back to its original place
mv /usr/bin/firefox /usr/sbin/firefox ln -s /usr/bin/consolehelper /usr/bin/firefox
- Create a security file on `/etc/security/console.apps/firefox` with the following code
USER=<user> PROGRAM=/usr/sbin/firefox SESSION=True
- Create a PAM file on `/etc/pam.d/firefox` with the following entries
#%PAM-1.0 auth sufficient pam_rootok.so auth sufficient pam_timestamp.so auth include system-auth account required pam_permit.so session required pam_permit.so session optional pam_xauth.so session optional pam_timestamp.so