Securing your environment after installation

 

Overview

WebSphere Application Server depends on several configuration files created during installation. These files contain password information and need protection. Although the files are protected to a limited degree during installation, this basic level of protection is probably not sufficient for your site. Verify that these files are protected in compliance with the policies of your site.

The files in the install_root/config and install_root/properties, except for those in the following list, need protection. For example, give permission to the user who logs onto the system for WAS primary administrative tasks. Other users or groups, such as WAS console users and console groups, who perform partial WAS administrative tasks, like configuring, starting servers and stopping servers, need permissions as well. The files in the install_root/properties directory that should not be protected are:

  1. Secure files on a Windows system:

    1. Open the browser for a view of the files and directories on the machine.

    2. Locate and right-click the file or the directory to protect.

    3. Click "Properties | Security"

    4. Remove the Everyone entry and any other user or group that should not have access to the file.

    5. Add the users who should be allowed to access the files with the proper permission.

  2. Secure files on UNIX systems.

    This procedure applies only to the ordinary UNIX file system. If your site uses access-control lists, secure the files by using that mechanism. Any site-specific requirements can affect the desired owner, group and corresponding privileges. For example, on AIX,

    1. Go to the install_root directory and change the ownership of the directory configuration and properties to the user who logs onto the system for WAS primary administrative tasks.

      Execute the following command:

      chown -R logon_name directory_name

      Where:

      • login_name is a specified user or group.

      • directory_name is the name of the directory that contains the files.

      It is recommended that you assign ownership of the files containing password information to the user who runs the appserver. If more than one user runs the appserver, provide permission to the group in which the users are assigned in the user registry.

    2. Set up the permission by executing the following command:

      chmod -R 770 directory_name

    3. Go to the install_root/properties directory and set the following file permission to everybody by executing the following command...

      chmod 777 file_names

      ...where file_names are the following files:

    4. Create a group for WAS and put the users who perform full or partial WAS administrative tasks in that group.

    5. Restrict access to the /var/mqm directories and log files needed for embedded messaging or WebSphere MQ as the JMS provider. Give write access only to the user ID mqm or members of the mqm user group.

 

Results

After securing your environment, only the users given permission can access the files. Failure to adequately secure these files can lead to a breach of security in your WAS applications.

 

What to do next

If there are any failures caused by file accessing permissions, check the permission settings.


Related tasks
Implementing security considerations
Securing messaging directories and log files