Created On: 24 June 2011
Problem:
This article details how to run Micro Focus LMF, ASLMF and ESLMF licensing as a non-root user. The following instructions assume that the Server Express and Server products are being installed on a clean machine. The instructions do contain some steps to remove files if they are present from a previous installation.
Resolution:
LMF Licensing
Step 1.
Install Micro Focus product. See product install notes that came with product for full details. During the installation you will be taken into the LMF installation. Text will appear as….
This product is protected using the Micro Focus License Management Facility (LMF). Please refer to the Development System Licensing Guide for information relating to the installation of the licensing system and licenses.
If you do not have LMF installed or want to upgrade to the latest version, we recommend you install it now.
Would you like to install LMF now? (y/n):
y
Enter the directory name where you wish to install License Manager
(Press Enter for default directory /opt/microfocus/mflmf)
/home/user1/mflmf
/home/user1/mflmf does not exist
Do you wish to create it ? (y/n)
y
Empty database created ok
Do you want only superuser to be able to access the License Admin System? (y/n)
n
It is recommended that you let license manager autostart at boot time.
Do you want license manager to be automatically started at boot time? (y/n)
n
For automatic startup of License Manager at boot time, you need to:
copy /home/user1/mflmf/mflmrcscript to /etc
and add the following entry to your /etc/inittab file:
mF:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1
Refer to your Operating System Manual for details.
LMF installation complete
1. Say yes (y) to installation of LMF.
2. Enter the location where LMF will be installed.
3. Confirm creation of location.
4. Then say no (n) to superuser access to LMF area
5. Say no (n) to starting LMF at boot time.
If you say yes when the machine reboots LMF will be started as root.
During the install and setup of the Enterprise Server Product you will be asked if you want Enterprise Server License manager started at boot time. You should say no to this as well.
Step 2.
Move to the location where LMF was installed. In this example “/home/user1/mflmf”
Update the license daemon start script, mflmman, and comment out the following lines.
if [ ! -w /etc/passwd ]
then
echo " You must be root to start License Manager."
exit 1
fi
Step 3.
Update exe permissions on license manager so non-root programs can run it.
[ as root ] chmod x mflm_manager
[ as root ] chmod x mflmman
Step 4.
Remove named pipe files. If the file LMF-common exists is /tmp or /var/tmp then it needs to be removed. The file will be recreated when license manager starts.
[as root ] rm –rf /tmp/LMF-common
[as root ] rm –rf /var/tmp/LMF-common
Step 5.
Remove shared memory segment 0x435dce60. This is created and used by LMF. If it exists it needs to be removed.
ipcs –m | grep 0x435dce60
[ as root ] ipcrm –m [ id ]
Step 6.
Remove LMF /etc/inittab entry. If the following entry exists in /etc/inittab then it needs to be removed. If this is left in the file, when the machine is booted the LMF daemon will be started as root.
mF:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1
Step 7.
Start license daemon as ordinary user.
./mflmman
ASLMF Licensing
For ASLMF there are no daemons or process that needs to run as root. Once the product installation process is complete all the operations are done at a user level.
ESLMF Licensing
Step 1..
Move to location of installed product and edit script bin/eslm
if test ! -w /etc/passwd
then
echo "You must be running as root to execute eslm" 1>&2
exit 1
fi
This is the trigger script for the Enterprise Server license daemon.
Step 2.
Remove named pipe files. If the file ESLMF-common exists is /tmp or /var/tmp then it needs to be removed.
[as root ] rm –rf /tmp/ESLMF-common
[as root ] rm –rf /var/tmp/LMF-common
Step 3.
Remove shared memory segment 0x435dce61. This is created and used by ESLMF. If it exists it needs to be removed.
ipcs –m | grep 0x435dce61
[ as root ] ipcrm –m [ id ]
Step 4.
Remove ESLMF /etc/inittab entry. If the following entry exists in /etc/inittab then it needs to be removed. If this is left in the file, when enter the machine is booted the ESLMF daemon will be started as root.
mfes:2345:wait:sh /etc/mfeslmrcscript > /dev/null 2>&1
Step 5.
Start license daemon as ordinary user.
./eslm
Limitations:
-- Because at install time you said no to starting LMF at boot time. Each time the machine is rebooted the LMF license manager will have to be manually started.
-- Because at install time you said no to starting ESLMF at boot time. Each time the machine rebooted the ESLMF license manager will have to be manually started. (If you are using MFDS and Enterprise Server.)
-- Note: The above method of running development licenses has been given a basic test to ensure it works and development tools are licensed. More in-depth and stress testing has not been performed. Internal license test systems are not designed to run in this way, so although there is high confidence the system will hold up and function as expected , it cannot be guaranteed under all situations.
Step 1.
Install Micro Focus product. See product install notes that came with product for full details. During the installation you will be taken into the LMF installation. Text will appear as….
This product is protected using the Micro Focus License Management Facility (LMF). Please refer to the Development System Licensing Guide for information relating to the installation of the licensing system and licenses.
If you do not have LMF installed or want to upgrade to the latest version, we recommend you install it now.
Would you like to install LMF now? (y/n):
y
Enter the directory name where you wish to install License Manager
(Press Enter for default directory /opt/microfocus/mflmf)
/home/user1/mflmf
/home/user1/mflmf does not exist
Do you wish to create it ? (y/n)
y
Empty database created ok
Do you want only superuser to be able to access the License Admin System? (y/n)
n
It is recommended that you let license manager autostart at boot time.
Do you want license manager to be automatically started at boot time? (y/n)
n
For automatic startup of License Manager at boot time, you need to:
copy /home/user1/mflmf/mflmrcscript to /etc
and add the following entry to your /etc/inittab file:
mF:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1
Refer to your Operating System Manual for details.
LMF installation complete
1. Say yes (y) to installation of LMF.
2. Enter the location where LMF will be installed.
3. Confirm creation of location.
4. Then say no (n) to superuser access to LMF area
5. Say no (n) to starting LMF at boot time.
If you say yes when the machine reboots LMF will be started as root.
During the install and setup of the Enterprise Server Product you will be asked if you want Enterprise Server License manager started at boot time. You should say no to this as well.
Step 2.
Move to the location where LMF was installed. In this example “/home/user1/mflmf”
Update the license daemon start script, mflmman, and comment out the following lines.
if [ ! -w /etc/passwd ]
then
echo " You must be root to start License Manager."
exit 1
fi
Step 3.
Update exe permissions on license manager so non-root programs can run it.
[ as root ] chmod x mflm_manager
[ as root ] chmod x mflmman
Step 4.
Remove named pipe files. If the file LMF-common exists is /tmp or /var/tmp then it needs to be removed. The file will be recreated when license manager starts.
[as root ] rm –rf /tmp/LMF-common
[as root ] rm –rf /var/tmp/LMF-common
Step 5.
Remove shared memory segment 0x435dce60. This is created and used by LMF. If it exists it needs to be removed.
ipcs –m | grep 0x435dce60
[ as root ] ipcrm –m [ id ]
Step 6.
Remove LMF /etc/inittab entry. If the following entry exists in /etc/inittab then it needs to be removed. If this is left in the file, when the machine is booted the LMF daemon will be started as root.
mF:2345:wait:sh /etc/mflmrcscript > /dev/null 2>&1
Step 7.
Start license daemon as ordinary user.
./mflmman
ASLMF Licensing
For ASLMF there are no daemons or process that needs to run as root. Once the product installation process is complete all the operations are done at a user level.
ESLMF Licensing
Step 1..
Move to location of installed product and edit script bin/eslm
if test ! -w /etc/passwd
then
echo "You must be running as root to execute eslm" 1>&2
exit 1
fi
This is the trigger script for the Enterprise Server license daemon.
Step 2.
Remove named pipe files. If the file ESLMF-common exists is /tmp or /var/tmp then it needs to be removed.
[as root ] rm –rf /tmp/ESLMF-common
[as root ] rm –rf /var/tmp/LMF-common
Step 3.
Remove shared memory segment 0x435dce61. This is created and used by ESLMF. If it exists it needs to be removed.
ipcs –m | grep 0x435dce61
[ as root ] ipcrm –m [ id ]
Step 4.
Remove ESLMF /etc/inittab entry. If the following entry exists in /etc/inittab then it needs to be removed. If this is left in the file, when enter the machine is booted the ESLMF daemon will be started as root.
mfes:2345:wait:sh /etc/mfeslmrcscript > /dev/null 2>&1
Step 5.
Start license daemon as ordinary user.
./eslm
Limitations:
-- Because at install time you said no to starting LMF at boot time. Each time the machine is rebooted the LMF license manager will have to be manually started.
-- Because at install time you said no to starting ESLMF at boot time. Each time the machine rebooted the ESLMF license manager will have to be manually started. (If you are using MFDS and Enterprise Server.)
-- Note: The above method of running development licenses has been given a basic test to ensure it works and development tools are licensed. More in-depth and stress testing has not been performed. Internal license test systems are not designed to run in this way, so although there is high confidence the system will hold up and function as expected , it cannot be guaranteed under all situations.
Incident #2519689
Old KB# 34194
#COBOL



