WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

             Personalize the table of contents and search results
             New or updated topic for this feature pack

Creating and augmenting a profile as an installer and assigning ownership to a non-root user

An installer can create and augment a profile, and assign ownership of the profile directory to a non-root user so that the non-root user can start the product for a specific profile. Use this example to accomplish the tasks through commands.

Before you begin

This task assumes a basic familiarity with the manageprofiles command and system commands.

This task uses the following terms:
  • Root users refers to:
    • [Linux] [HP-UX] [Solaris] [AIX] Root users
    • [Windows] Administrators
  • Non-root users refers to:
    • [Linux] [HP-UX] [Solaris] [AIX] Non-root users
    • [Windows] Non-administrators
  • Installer refers to a root user or a non-root user.

New or updated for this feature pack Before you can create and augment a profile, you must install the product.

About this task

New or updated for this feature pack An installer must perform the following steps to create, optionally augment a profile, and assign ownership for the profile directory and the logs directory. The ownership is assigned to a non-root user ID that is different from the installer ID. The non-root user needs access to these directories to start the product.

New or updated for this feature pack If augmentation of a particular profile is supported, then the installer might need to create a profile and later augment that profile for a feature pack. However, as the installer, create a feature pack-enabled profile when possible. To create a feature pack-enabled profile, use the appropriate feature pack profile template, and skip the augmentation step.

New or updated for this feature pack The installer might have already completed the steps in this task to create a profile for a non-root user and changed ownership of particular directories to the non-root user. If you, as the installer, must now augment the profile for a non-root user, then begin with the step on augmentation.

New or updated for this feature pack For more information, see the topic on augmentation rules and limitations for feature packs.

The commands are split on multiple lines for printing purposes.

Procedure

  1. Create the profile by issuing the following code from a command prompt:
    [Linux] [HP-UX] [Solaris] [AIX] New or updated for this feature pack
    ./manageprofiles.sh -create -profileName profile01 -profilePath
    app_server_root/profiles/profile01 -templatePath 
    app_server_root/profileTemplates/dmgr
    [Windows] New or updated for this feature pack
    manageprofiles.bat -create -profileName profile01 -profilePath C:\
    app_server_root\profiles\profile01 -templatePath C:\
    app_server_root\profileTemplates\dmgr
    

  2. New or updated for this feature pack Optionally augment the profile.

    You must complete this step if the feature pack requires you to augment the profile that you created in the previous step to use the feature pack capabilities.

    [Linux] [HP-UX] [Solaris] [AIX]
    ./manageprofiles.sh -augment -profileName profile01 -templatePath 
    app_server_root/profileTemplates/WEBSERVICES/dmgr.wsfep  
    [Windows]
    manageprofiles.bat -augment -profileName profile01 -templatePath C:\
    app_server_root\profileTemplates\WEBSERVICES\dmgr.wsfep 
    
  3. Change ownership of the profile01 profile directory to the user1 non-root user.
    [Linux] [HP-UX] [Solaris] [AIX] For example, issue the following command:
    chown -R user1 app_server_root/profiles/profile01
    [Windows] Follow instructions in the Windows documentation to grant user1 access to the following directory:
    C:\app_server_root\profiles\profile01
  4. Change the ownership of the logs directory for the profile01 profile to the user1 non-root user to prevent displaying log messages to the console.
    [Linux] [HP-UX] [Solaris] [AIX] Issue the following command:
    chown -R user1 app_server_root/logs/manageprofiles/profile01
    [Windows] Follow instructions in the Windows documentation to grant user1 access to the following directory:
    C:\app_server_root\logs\manageprofiles\profile01

Results

New or updated for this feature pack The installer has created a profile, optionally augmented the profile, and changed ownership of the profile directory and log directory to a non-root user.

What to do next

New or updated for this feature pack As the installer, you can continue to create and augment profiles, and assign ownership to non-root users as needed.

A non-root user ID can manage multiple profiles. Have the same non-root user ID manage an entire profile, whether it is the deployment manager profile, a profile that contains the application servers and the node agent, or a custom profile. A different user ID can be used for each profile in a cell, whether global security or administrative security is enabled or disabled. The user IDs can be a mix of root and non-root user IDs. For example, the root user might manage the deployment manager profile, while a non-root user might manage a profile that contains application servers and the node agent, or vice versa. However, typically, a root user or a non-root user manages all profiles in a cell.

The non-root user can use the same tasks to manage a profile that the root user uses.




In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/tpro_rootpro_nonroot_own.html