For add-ins that require extended privileges permanently, you can disable all security settings for certain methods in the add-in by using the comsoltrust command. This command makes it possible to maintain restricted security settings for applications generally but allow certain adds-in to operate.
The password is encrypted using an autogenerated password. The encrypted password is stored in the preference files $HOME/.comsol/v64/comsol.prefs and
$HOME/.comsol/v64/comsolserver.prefs. The autogenerated password is stored in the read-protected file
$HOME/.comsol/v64/prefskeyserver.properties.