ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Deploy hostperm.1

  • 5 ردود
  • 1 has this problem
  • 14 views
  • آخر ردّ كتبه Dimas

more options

Hi!

I want to deploy a default hostperm.1 to a hundreds of PCs with Firefox already installed (I want to allow the popups of certain intranet application).

I tried copying it to that folders of the remote computers but nothing changes on their Firefox:

  • C:\Program Files\Mozilla Firefox
  • C:\Program Files\Mozilla Firefox\defaults\pref

Anyone can help me?

Thx

Hi! I want to deploy a default hostperm.1 to a hundreds of PCs with Firefox already installed (I want to allow the popups of certain intranet application). I tried copying it to that folders of the remote computers but nothing changes on their Firefox: * C:\Program Files\Mozilla Firefox * C:\Program Files\Mozilla Firefox\defaults\pref Anyone can help me? Thx

All Replies (5)

more options

Now I've seen that there is the permissions.sqlite file too. hostperm.1 is deprecated? I've to deploy the permissions.sqlite instead? How can I do it?

Thx

more options

The file hostperm.1 was last used in Firefox 2 version. As you've noticed, current Firefox versions use permissions.sqlite to store the permissions as shown in Tools > Page Info > Permissions

Files that you place in C:\Program Files\Mozilla Firefox\defaults are only copied to new profiles and not to existing profiles.
You will have to parse the content of the file profiles.ini to get the random name (xxxxxxxx.default) of the Firefox Profile Folder and copy the permissions.sqlite file with the exceptions to each profile. This will remove all other existing exceptions in that profile.

more options

Thx for the answer. And is there no way to have a default permissions.sqlite and a profile permissions.sqlite? I think it's not a good practice to overwrite the previous users' permissions.

If there isn't any other solution, can you give me a hint about parsing the profiles.ini?

Thx thx thx :)

more options

Yes solution is... write CSV file with needed values to add, take sqlite-shell-win32-x86-3070701.zip or newer if exist. Create scripts to access users permissions.SQLITE file add needed values if you have troble with scripting to add this records - Write me.

I recomend to do small reserch - how much records are in sqlite file. create all records after users records +100 for example, at he end leave space for future records and than create one FAKE record, if user adds some exceptions to database from Firefox, then all records are added after FAKE record and you got a place where to place real records.

At this moment I`m thinking about how to identify Firefox version in script, becouse after 3.xx database structure are changed.......

more options

Thx for the idea Rukicc, I will try this.

To identify the Firefox version I parse the file application.ini for the tag "Version=". Firefox 4.0 was 2.0, Firefox 5.0 is 5.0