Set permissions manually for the administration server
For IBM HTTP Server administration server, the setupadm script creates users and groups and sets file permissions for them. This topic describes how to do this manually.
Overview
Perform the following steps to create users and groups and set file permissions.
Procedure
- Create a new user and unique group for the IBM HTTP Server administration server.
![]()
- Launch SMIT.
- Click Security and Users.
- Click Groups > Add a Group.
- Enter the group name, for example, admingrp.
- Click OK. Go back to Security and Users.
- Click Users > Add a User.
- Enter the user name, for example, adminuser.
- Enter the primary group we just created.
- Click OK.
![]()
![]()
- Execute from a command line:
groupadd <group_name> useradd -g <group_name> <user_ID>
![]()
- Launch the administration tool.
- Click Browse > Groups.
- Click Edit > Add.
- Enter the group name, for example, admingrp.
- Click OK.
- Click Browse > Users.
- Click Edit > Add.
- Enter the user name, for example, adminuser and the primary group name, for example, admingrp.
- Click OK.
![]()
![]()
![]()
Updating file permissions.
Once we have created a user and group, set up file permissions as follows:
- Update the permissions for the targeted IBM HTTP Server conf directory.
- At a command prompt, change to the directory where we installed IBM HTTP Server.
- Type the following commands:
chgrp <group_name> <directory_name> chmod g+rw <directory_name>
- Update the file permission for the targeted IBM HTTP Server configuration files.
- At a command prompt, change to the directory that contains the configuration files.
- Type the following commands:
chgrp <group_name> <file_name> chmod g+rw <file_name>
- Update the admin.conf configuration file for the IBM HTTP Server administration server.
- Change to the IBM HTTP Server administration server admin.conf directory.
- Search for the following lines in the admin.conf file:
User nobody Group nobody
- Change those lines to reflect the user ID and unique group name we created. For example:
User userID Group group_name
- Update the file permission for the targeted plug-in configuration files.
- At a command prompt, change to the directory that contains the plug-in configuration files.
- Type the following commands:
chgrp <group_name> <file_name> chmod g+rw <file_name>
Results
We have set up read and write access for the configuration and authentication files. Now we can perform Web server configuration data administration.