Q. How do I stop / start default FTP server on FreeBSD or OpenBSD UNIX system?
A. ftpd is the Internet File Transfer Protocol server under BSD and configured via inetd. The ftpd utility is the Internet File Transfer Protocol server process. The server uses the TCP protocol and listens at the port specified or by default at port 21.
The inetd server should be run at boot time by /etc/rc. It then listens for connections on certain internet sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors. After the program is finished, inetd continues to listen on the socket.
Task: Disable FTPD
Login as root user.
To disable ftpd open /etc/inetd.conf file:
# vi /etc/inetd.conf
Find line:
ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
To disable a service, comment it out by prefixing the line with '#'.
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
Save and close the file.
Task: Restart inetd
Now just restart inetd, enter:
# /etc/rc.d/inetd restart
OR if you are using OpenBSD:
# kill -HUP `cat /var/run/inetd.pid`
To enable ftp, reverse the step # 1.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 2 comments… read them below or add one }
Users listed in the /etc/ftpusers file will not be allowed to log into ftpd. Commenting out the ‘root’ entry in this file will allow root to login via ftp (which is not recommended)
Source: http://www.openbsd101.com/tipstricks.html
please help when i type ./configure i get this message “tar.bz2″ and when i type make i get this message “make: *** No targets specified and no makefile found. Stop.” please help