Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Portal Server 6 2005Q4 Administration Guide 

Chapter 5
Running the Portal Server as User Non-Root

This chapter provides the post-install procedure for configuring the Sun Java™ Portal Server to run as user non-root. Running the Portal Server as non-root user is optional. The following procedure describes the steps to configure a Sun Java System Portal Server installation that is running as root user to run as a non-root user.


Note

The Sun Java™ System Enterprise Installer does not support installation of the Sun Java™ System Web Server or the Sun Java™ System Application Server as non root. However it does support the installation of the Sun Java™ System Directory Server as non root.


To Run Portal Server as User Non-Root

This procedure assumes the following:

Perform all steps as superuser, except as noted.

  1. Change the ownership of the following directories from root to Userid:UserGroup. That is, enter:
    • chown -R Userid:UserGroup /opt/SUNWps
    • chown -R Userid:UserGroup /etc/opt/SUNWps
    • chown -R Userid:UserGroup /var/opt/SUNWps
    • chown -R Userid:UserGroup /opt/SUNWam
    • chown -R Userid:UserGroup /etc/opt/SUNWam
    • chown -R Userid:UserGroup /var/opt/SUNWam
    • chown -R Userid:UserGroup WEBCONTAINER-DIR
    • If you did not use the Java Enterprise System installer to install the Sun Java System Access Manager as non-root, consult the Access Manager documentation for information on changing the Access Manager directories.

  2. Set the following permissions for the Portal Server directories:
    • chmod 0755 /opt/SUNWps
    • chmod 0755 /etc/opt/SUNWps
    • chmod 0755 /var/opt/SUNWps
    • chmod 0755 /opt/SUNWam
    • chmod 0755 /etc/opt/SUNWam
    • chmod 0755 /var/opt/SUNWam
    • chmod 0755 WEBCONTAINER-DIR
  3. Restart the directory server as the non-root user.
  4. The Java Enterprise System installer installs the Java™ Development Kit (JDK™) in /usr/jdk/entsys. Change the ownership and permissions of this directory for the non-root user:

    • chown -R Userid:UserGroup /usr/jdk
    • chmod 0755 /usr/jdk
  5. Stop the web container and Directory Server.
  6. Ensure that all of the processes are stopped.
  7. To verify, type:

    • ps -aef | grep slapd
    • ps -aef | grep httpd
    • ps -aef | grep http
    • ps -aef | grep admin
  8. Kill off any processes that did not get shutdown.
  9. Start Directory Server and the web container.
  10. Watch the owner of the directory and web container process. It should be running as non-root user.

  11. Note

    If you are running the Portal Server as non-root user, and you want to apply a patch, the ownership of the Portal Server directories must first be changed from non-root back to superuser (root). After the patch has been successfully applied, you can configure ownership and permissions to run Portal Server as non-root user again.




Previous      Contents      Index      Next     


Copyright 2005 Sun Microsystems, Inc. All rights reserved.