> For the complete documentation index, see [llms.txt](https://n000b3r.gitbook.io/oscp-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n000b3r.gitbook.io/oscp-notes/configurations/setting-up-pure-ftpd-server.md).

# Setting up Pure-FTPD server

### Install pure-ftpd&#x20;

```bash
apt-get install pure-ftpd
```

### Create ftpgroup

```bash
groupadd ftpgroup
```

### Create ftpuser

```bash
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
```

### Create a FTP directory

```bash
mkdir /ftphome
```

### Creating a user&#x20;

```bash
pure-pw useradd bob -u ftpuser -g ftpgroup -d /ftphome/
```

### Updating the FTP Database

```bash
pure-pw mkdb
```

### Change the user and group ownership for the FTP directory

```bash
chown -R ftpuser:ftpgroup /ftphome
```

### Restarting FTP server

```bash
systemctl restart pure-ftpd
```

### Troubleshooting

### List the users in the database

```bash
pure-pw list
```

### Show specific user

```bash
pure-pw show bob
```
