Mozilla Firefox Prefs.JS user.JS

shashi2410
New Contributor

I am new to the MAC and shell scripting,
We got a request to create a package using JAMF for the following requirement:

This is for Mozilla Firefox application. There is a pref.js file in “/Users/$username/Library/Application Support/Firefox/Profiles/nsdhfwef.default” directory. I need to search for a line which contains the string “network.automatic-ntlm-auth.trusted-uris” and copy it to a file user.js and also need to append some text to the end of the line network.automatic-ntlm-auth.trusted-uris
Please Advice

1 REPLY 1

mikeh
Contributor II

It would be better to use Mike Kaply's CCK2 add-on to define a consistent configuration to be distributed with Firefox, rather than attempting to modify the profile directory in the user's Library folder. The name of the folder containing the profile will be different from user to user. If you define the setting in the CCK2, it should be set for all users, including existing users.

Check it out here.