Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Funkcjonalność tej witryny będzie ograniczona w czasie konserwacji. Jeśli artykuł nie rozwiązuje twojego problemu i chcesz zadać pytanie, to nasza społeczność wsparcia jest dostępna na @FirefoxSupport na Twitterze i /r/firefox na Reddicie.

Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

Lock proxy Setting in Firefox 28 - Ubuntu 14.04 LTS

  • 2 odpowiedzi
  • 5 osób ma ten problem
  • 21 wyświetleń
  • Ostatnia odpowiedź od cor-el

more options

Hi Support,

I'm using firefox 28 in ubuntu 14.04 LTS and I'm trying to lock proxy setting changes by other users in there login only.

I tried the following steps but not worked for me.

What's wrong with these step:

Step:1) Created a file name like "local-settings.js" in -- /usr/lib/firefox/defaults/pref --- Pasted this line -- pref("general.config.filename", "mozilla.cfg"); --- in "local-settings.js"


Step :2) Created a file name like "mozilla.cfg" in -- /usr/lib/firefox ---

And copy and paste the below line in this "mozilla.cfg" file.

defaultPref(); // set new default value pref(); // set pref, but allow changes in current session lockPref(); // lock pref, disallow changes


lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "X.X.X.X"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.share_proxy_settings", true); lockPref("network.proxy.no_proxies_on", "127.0.0.1,localhost,X.X.X.X")

When i login with user account i'm able to change the proxy setting.

Can anyone please help out.

Hi Support, I'm using firefox 28 in ubuntu 14.04 LTS and I'm trying to lock proxy setting changes by other users in there login only. I tried the following steps but not worked for me. What's wrong with these step: Step:1) Created a file name like "local-settings.js" in -- /usr/lib/firefox/defaults/pref --- Pasted this line -- pref("general.config.filename", "mozilla.cfg"); --- in "local-settings.js" Step :2) Created a file name like "mozilla.cfg" in -- /usr/lib/firefox --- And copy and paste the below line in this "mozilla.cfg" file. defaultPref(); // set new default value pref(); // set pref, but allow changes in current session lockPref(); // lock pref, disallow changes lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "X.X.X.X"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.share_proxy_settings", true); lockPref("network.proxy.no_proxies_on", "127.0.0.1,localhost,X.X.X.X") When i login with user account i'm able to change the proxy setting. Can anyone please help out.

Zmodyfikowany przez ddk005 w dniu

Wszystkie odpowiedzi (2)

more options

+ pref("general.config.obscure_value", 0); http://ubuntuforums.org/showthread.php?t=812832 +lockPref("network.proxy.share_proxy_settings", true); (Equivalent to the "Use proxy server for all protocols" setting) ref: http://www.edgewave.com/docs/support/.../IP0460.htm

Or you can try the automation:http://www.alain.knaff.lu/howto/Mozil.../byteshf.cgi

more options

The steps look fine to me (byte shifting is no longer required).

Do any of the prefs have a locked setting in you click the Status header on the about:config page? Do you see the general.config.filename pref with value mozilla.cfg on the about:config page?

Are you sure that you are starting this version of Firefox?

Do you get an error message when the mozilla.cfg file is absent?

You will first have to check for errors with the local-setting.js file