[13989] in bugtraq

home help back first fref pref prev next nref lref last post

Re: flex license manager tempfile predictable name...

daemon@ATHENA.MIT.EDU (Roelof JT Jonkman)
Wed Feb 23 15:05:22 2000

Message-Id:  <200002230240.UAA04823@stephens.ittc.ukans.edu>
Date:         Tue, 22 Feb 2000 20:40:57 -0600
Reply-To: Roelof JT Jonkman <rjonkman@ITTC.UKANS.EDU>
From: Roelof JT Jonkman <rjonkman@ITTC.UKANS.EDU>
X-To:         sp00n <sp00n@APOLLO.GTI.NET>
To: BUGTRAQ@SECURITYFOCUS.COM
In-Reply-To:  Your message of "Mon, 21 Feb 2000 23:44:51 EST." 
              <Pine.GSO.4.10.10002212252390.4077-100000@apollo.gti.net>

sp00n,

Flex does not need to run as root:

Somewhere on their webpage they have some scripts, I crafted some myself, and
didn't see a need to run a license manager as root.

In the following script note the use of 'su daemon -c' and relocating the
log file to somewhere more sensible. (-l blah)

roel

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

home help back first fref pref prev next nref lref last post