DEV Community

nabbisen
nabbisen

Posted on • Originally published at obsd.solutions

4 2

OpenBSD ftpd 7.0: FTP server

Summary

OpenBSD has its own FTP server called ftpd.

ftpd, the FTP daemon, is installed and disabled by default.
All what to do in order to use it is just run rcctl enable and rcctl start.

Tutorial

Before Configuration

Let's see it's disabled by default:

$ doas rcctl check ftpd
ftpd(failed)
Enter fullscreen mode Exit fullscreen mode

Step 1: Enable Daemon

First, enable it:

$ doas rcctl enable ftpd
Enter fullscreen mode Exit fullscreen mode

* Note: Here, /etc/rc.conf.local will be updated like this:

$ cat /etc/rc.conf.local
ftpd_flags=
Enter fullscreen mode Exit fullscreen mode

Step 2: Start Daemon

Then start it:

$ doas rcctl start ftpd
ftpd(ok)
Enter fullscreen mode Exit fullscreen mode

The FTP server is now running.
You can establish ftp connection to the server 😉 (as long as there is no network issues.)

* Note: Accessing as root is forbidden.

Conclusion

OpenBSD provides not only the daemon program but also several configuration files. /etc/ftpchroot and /etc/ftpusers must be sometimes useful.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay