FLEXnet on Ubuntu 12.04

Recently I upgraded our license server to Ubuntu 12.04. Following this upgrade at boot the license manager fails to start. Interestingly, in the syslog there following relevant entry appears:
Jan 29 20:08:07 localhost kernel: [ 2056.080552] non-matching-uid
symlink following attempted in sticky world-writable directory by
lmboot_TMW (fsuid 0 != 1000)
The error message looks like a security error of some sort. The closest thing I can find is discussed over at:
As far as I understand at boot the system launches
/etc/init.d/flexnet
which is trying to launch
/etc/lmboot_TMW -u [local user name]
If I log in as [local user name] I can manually launch
/etc/lmboot_TMW

Réponses (3)

Fernando
Fernando le 26 Mar 2013

0 votes

To solve this issue make the directory /var/tmp owned by the user you are using to run the license manager.
Steve
Steve le 26 Avr 2013

0 votes

You can also add kernel.yama.protected_sticky_symlinks = 0 to /etc/sysctl.conf so that you revert to previous release behavior.
echo "kernel.yama.protected_sticky_symlinks = 0" | sudo tee -a /etc/sysctl.conf
Found at:
Clif Presser
Clif Presser le 20 Juil 2013
Modifié(e) : Clif Presser le 20 Juil 2013

0 votes

Using a sub-directory of /var/tmp worked for me.
  1. Create /var/tmp/matlab.
  2. Set the owner of the directory to your matlab user.
  3. Make a backup copy of $MATLAB/etc/lmopts.sh
  4. Edit $MATLAB/etc/lmopts.sh, changing occurrences of /var/tmp to /var/tmp/matlab
The first three steps are:
sudo mkdir /var/tmp/matlab
sudo chown matlab /var/tmp/matlab
sudo cp /PATH/TO/MATLAB/etc/lmopts.sh /PATH/TO/MATLAB/etc/lmopts.sh_bak
So far I've seen no ill effects.

Catégories

En savoir plus sur Manage Products dans Centre d'aide et File Exchange

Produits

Question posée :

le 29 Jan 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by