# 4.1. Create an administration account.

Log into the server as root by the following procedure.

| **xoonips-server login: root**  | ← Enter "root" as a login user.  |
| ------------------------------- | -------------------------------- |
| **Password:**                   | ← Enter root password（not shown） |
| **\[root\@xoonips-server \~]#** | ← (Logged in as root)            |

Create an administration account by the following commands.

| **\[root\@xoonips-server \~]# useradd admin**               | ← Create an admin account.    |
| ----------------------------------------------------------- | ----------------------------- |
| **\[root\@xoonips-server \~]# passwd admin**                | ← Set an admin password.      |
| **Changing password for user admin.**                       |                               |
| **New UNIX password:**                                      | ← Enter the admin password.   |
| **Retype new UNIX password:**                               | ← Reenter the admin password. |
| **passwd: all authentication tokens updated successfully.** |                               |

## 4.1.1. Setup for authorizing the admin user to execute su. <a href="#id-4-1-1-setup-for-authorizing-the-admin-user-to-execute-su" id="id-4-1-1-setup-for-authorizing-the-admin-user-to-execute-su"></a>

Under the root authority, which is unrestricted to execute any commands, it may cause critical operation errors such as deleting important files, etc. The following shows how to set it as it takes user admin for usual operations and the root authority by using su command for inevitable cases.

| **\[root\@xoonips-server \~]# usermod -G wheel admin** | ← Add user admin to wheel group |
| ------------------------------------------------------ | ------------------------------- |
| **\[root\@xoonips-server \~]# vi /etc/pam.d/su**       | ← Edit file by vi editor        |
| **#auth required pam\_whell.so use\_uid**              |                                 |
| ↓                                                      |                                 |
| **auth required pam\_whell.so use\_uid**               | ← Delete comments               |

Please refer to web or study guides for the usage of vi editor.

Log out now. Log in as a user admin for the following procedures.

\| **\[root\@xoonips-server \~]# exit** | ← Log out | | --- | --- |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/xoonips-tutorial/3installation/4.-customize-centos5/41create_an_administration_account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
