> For the complete documentation index, see [llms.txt](https://training-team.gitbook.io/setting-up-cloudera-data-platform-cdp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://training-team.gitbook.io/setting-up-cloudera-data-platform-cdp/creating-user.md).

# 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
```
