COMMAND
Licence manager
SYSTEMS AFFECTED
munices
PROBLEM
'sp00n' found following. During the install of workshop pro 5.0
the flex license manager creates a file in
/var/tmp/license_errors, since /var/tmp is writable by anyone and
the tmp filename is predictable... you can see the problems here
to install licenses you need to be root. so, it could be nasty if
this file was a link...
-rw-r--r-- 1 root other 394 Feb 4 13:48 /var/tmp/license_errors
the date and time installed workshop pro. In the file, logs from
the install:
Cannot access location /usr/local/bin/SUNWspro/license_dir to store
product li
censes
grep: can't open /opt/SUNWspro/license_dir/sunpro.lic,node
Cannot access location /usr/local/bin/SUNWspro/license_dir to store
product li
censes
**All Licenses Were Successfully Installed**
WS Compiler C++/SPARC 5.0 XX-XXX-XXXX XXXXXXXXXXXXXXX
SOLUTION
Flex does not need to run as root. Somewhere on their webpage
they have some scripts. In the following script note the use of
'su daemon -c' and relocating the log file to somewhere more
sensible. (-l blah). Here is the script:
#!/bin/sh
#
# quircky script to start license gumbo
case "$1" in
'start')
if [ -x /tools/licenses/bin/lmgrd ] ; then
su daemon -c "umask 022; /tools/licenses/bin/lmgrd -c /tools/licenses/keys/license.dat -l /tools/licenses/logs/flexlm.log" &
echo "Starting FLEXlm license service."
fi
;;
'stop')
if [ -x /tools/licenses/bin/lmutil ] ; then
echo "y" | /tools/licenses/bin/lmutil lmdown -c /tools/licenses/keys/license.dat -l /tools/licenses/logs/flexlm.log &
echo "Stopped FLEXlm license service."
fi
;;
'restart')
if [ -x /tools/licenses/bin/lmutil ] ; then
echo "y" | /tools/licenses/bin/lmutil lmreread -c /tools/licenses/keys/license.dat -l /tools/licenses/logs/flexlm.log &
echo "Restarted FLEXlm license service."
fi
;;
'status')
if [ -x /tools/licenses/bin/lmutil ] ; then
/tools/licenses/bin/lmutil lmstat -c /tools/licenses/keys/license.dat
echo "Status displayed."
fi
;;
'hostid')
if [ -x /tools/licenses/bin/lmutil ] ; then
/tools/licenses/bin/lmutil hostid -c /tools/licenses/keys/license.dat
echo "Hostid returned."
fi
;;
*)
echo "Usage: /etc/init.d/flexlm { start | stop | status | hostid }"
;;
esac