# Creating User

You have to create a user “training” and set its password “password”

Add user in CentOS, open a terminal

```
sudo useradd training
```

Assign a password using passwd command and set the password: “password”

```
sudo passwd training
```

<div align="center"><img src="https://378386576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2Fx6w1DUgMMlB8n7hrmMI4%2F8?alt=media" alt=""></div>

Edit the sudoers file through vi command

```
sudo vi /etc/sudoers
```

You have to follow either of the 2 options

1. Add a new highlighted line in this file

```
training ALL=(ALL) NOPASSWD: ALL
```

![](https://378386576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2Fwq0GEkNSagBMS7sRANhn%2F9?alt=media)

2\. Replace # %wheel with training in the above line.

Once this is done, save the file using Esc :wq!

> **Set `PasswordAuthentication` as yes and restart ssh daemon**

```
sudo vi /etc/ssh/sshd_config
```

Uncomment **PasswordAuthentication yes** and comment the **PasswordAuthentication no**

![](https://378386576-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F75mHmsk0nryvfC81G31P%2Fuploads%2FbGLt2f0UO9RsyOxy81wG%2F10?alt=media)

```
sudo systemctl restart sshd.service
```


---

# 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://training-team.gitbook.io/setting-up-cloudera-data-platform-cdp/creating-user.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.
