![]() | |
Sun Java System Portal Server 6 2005Q4 Administration Guide |
Chapter 5
Running the Portal Server as User Non-RootThis 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.
To Run Portal Server as User Non-Root
This procedure assumes the following:
Perform all steps as superuser, except as noted.
- 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.
- Set the following permissions for the Portal Server directories:
- Restart the directory server as the non-root user.
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:
- Stop the web container and Directory Server.
- Ensure that all of the processes are stopped.
To verify, type:
- Kill off any processes that did not get shutdown.
- Start Directory Server and the web container.
- Watch the owner of the directory and web container process. It should be running as non-root user.