Sun Java System Portal Server 6 2005Q1 Administration Guide |
Chapter 5
Configuring the Portal Server to Run as User Non-RootThe following optional, post-install 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.
Perform all steps as superuser, except as noted. After installing the Sun Java System Portal Server software, use the following procedure to configure the Portal Server to run as user non-root.
- 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 Identity Server 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.