[frs-270] Unix: Changing the user of a FusionReactor installation

During installation, the FusionReactor Administration Manager installer gives you the option of choosing which user and group FusionReactor will be installed (and run) as.

Ordinarily, we recommend installing FusionReactor either:

  • as the user under which your J2EE container(s) run. This allows easy installation of individual instances later. If there is a mismatch, FusionReactor will report that it "Cannot modify the web.xml" file of a given target.
  • as root

You may need to change the runtime user of FRAM/FusionReactor if:

  • FusionReactor reports it "Cannot modify the web.xml" during instance installation.
  • The instance installs, and the J2EE engine restarts, but FusionReactor does not answer on its web port.

In order to change the runtime user of the system, the following procedure can be used. Substitute your chosen user and group for "root:root" where necessary, if you don't wish to use the root user for FusionReactor.

Procedure

Become root, by using su or logging in as root.

  1. Stop FRAM, if running
    /etc/init.d/framd stop
  2. Change directory to where FR is installed
    cd /opt
  3. Change the ownership of the installation
    chown -R root:root fusionreactor
  4. Change the ownership of the startup script
    chown root:root /etc/init.d/framd
  5. Edit the startup script to change the runtime user. Substitute your editor for "vi".


    Pre-FusionReactor 4.0.6

    The runtime user is on line 27 of this file.
    vi /etc/init.d/framd

    /etc/init.d/framd Original (line 27)
    su -c "/opt/fusionreactor/tomcat/bin/framd-real start" nobody
    
    /etc/init.d/framd New (line 27)
    su -c "/opt/fusionreactor/tomcat/bin/framd-real start" root
    


    FusionReactor 4.0.6 and Later

    The runtime user is on line 410 of this file.
    vi /etc/init.d/framd

    /etc/init.d/framd Original (line 410)
    INSTALL4J_JAVA_PREFIX="$SUCMDFILE -s /bin/sh nobody -c "
    
    /etc/init.d/framd New (line 410)
    INSTALL4J_JAVA_PREFIX="$SUCMDFILE -s /bin/sh root -c "
    

    Take care not to disturb the formatting of the line.

  6. Restart FRAM
    /etc/init.d/framd start
  7. Restart your J2EE container

FusionReactor 4.5.2 and Later

The runtime user is on line 413 of this file.
vi /etc/init.d/framd

/etc/init.d/framd Original (line 413)
INSTALL4J_JAVA_PREFIX="$SUCMDFILE -s /bin/sh nobody -c "
/etc/init.d/framd New (line 413)
INSTALL4J_JAVA_PREFIX="$SUCMDFILE -s /bin/sh root -c "

Take care not to disturb the formatting of the line.

  1. Restart FRAM
    /etc/init.d/framd start
  2. Restart your J2EE container

Issue Details

Type: Technote
Issue Number: FRS-270
Components: Installer
Environment:
Resolution: Fixed
Last Updated: 19/Nov/12 10:26 AM
Affects Version: 4.0.0
Fixed Version: 4.0.0
Server:
Platform:
Related Issues:

FRS-288: Windows: Changing the user of a FusionReactor installation

Comments are closed.