Sun Java System Messaging Server 6.3 Administration Guide

1.1 Creating UNIX System Users and Groups

System users run specific server processes, and privileges need to be given to these users so that they have appropriate permissions for the processes they are running.

Set up a system user account and group for all Sun Java System servers, and set permissions for the directories and files owned by that user. To do so, follow the steps below.

Note –

For security reasons, in some deployments it may be desirable to have different system administrators for different servers. This is done by creating different system users and groups per server. For example, the system user for Messaging Server would be different from the system user for Web Server, and system administrators Messaging Server would not be able to administer the Web Server.

ProcedureTo Create UNIX System Users and Groups

  1. Log in as superuser.

  2. Create a group to which your system users will belong.

    In the following example, the mail group is created:

    # groupadd mail
  3. Create the system user and associate it with the group you just created. In addition, set the password for that user.

    In the following example, the user mailsrv is created and associated with the mail group:

    # useradd -g mail mailsrv

    useradd and usermod commands are in /usr/sbin. See UNIX man pages for more information.

  4. You might also need to check the /etc/group and /etc/passwd files to be sure that the user has been added to the system group that you created.

    Note –

    Should you decide not to set up UNIX system users and groups prior to installing Messaging Server, you will be able to specify them when you run the 1.3 Creating the Initial Messaging Server Runtime Configuration.