Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Identity Synchronization for Windows 1 2004Q3 Installation and Configuration Guide 

Appendix C  
Running Services as Non-Root on Solaris

You must have root privileges to install and run Identity Synchronization for Windows services. However, after installing the product you can configure the software to run the program services as a non-root user.


Note

If you are going to run services as non-root, you must change the permissions for all directories under the Identity Synchronization for Windows instance directory. (The default directory is /var/opt/SUNWisw).


To run services as a non-root user on Solaris, perform the following steps:

  1. Use the UNIX useradd command to create a user account for Identity Synchronization for Windows (optional step).
  2. You also can use a nobody user to run services.
    The remaining examples in this procedure assume you created a user called iswuser.

  3. To install a Sun Java System Directory Server Connector on Solaris, you must choose a non-privileged port for the Connector during installation.
    (For example, ports larger than 1024 are acceptable.)

  4. Note

    You must execute all commands in the remaining steps as root.


  5. After installing all components, execute the following command to stop Identity Synchronization for Windows:
  6. /etc/init.d/isw stop

  7. You must update the ownership of the instance directory.
    For example if you installed the product in /var/opt/SUNWisw.
  8. chown -R iswuser /var/opt/SUNWisw
    chown -R iswuser /opt/SUNWisw

  9. In a text editor, open the /etc/init.d/isw file and replace the following line:
  10. "$EXEC_START_WATCHDOG" "$JAVA_PATH" "$INSTALL_DIR" "CONFIG_DIR"

    with the following:

    su iswuser -c "$EXEC_START_WATCHDOG '$JAVA_PATH' '$INSTALL_DIR' 'CONFIG_DIR'"

  11. Execute the following command to restart the service:
  12. /etc/init.d/isw start

  13. Execute the following command to verify that the components are running using the assigned user’s userid:
  14. ps -ef | grep iswuser



Previous      Contents      Index      Next     


Part No: 817-6199-05.   Copyright 2004 Sun Microsystems, Inc. All rights reserved.