aktifin ftp di freeBSD

agar FTP ini aktif pada saat boot kita perlu mengedit file /etc/inetd.conf dan /etc/rc.conf. Untuk mengeditnya kita gunakan perintah sebagai berikut :

iyem# ee /etc/inetd.conf

^[ (escape) menu ^y search prompt ^k delete line ^p prev li ^g prev page
^o ascii code ^x search ^l undelete line ^n next li ^v next page
^u end of file ^a begin of line ^w delete word ^b back 1 char
^t begin of file ^e end of line ^r restore word ^f forward 1 char
^c command ^d delete char ^j undelete char ^z next word
L: 1 C: 1
=====================================================================

# $FreeBSD: src/etc/inetd.conf,v 1.73 2007/07/05 09:46:53 delphij Exp $
#
# Internet server configuration database
#
# Define *both* IPv4 and IPv6 entries for dual-stack support.
# To disable a service, comment it out by prefixing the line with ‘#’.
# To enable a service, remove the ‘#’ at the beginning of the line.
#
ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
#ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l
#ftp stream tcp nowait root /usr/libexec/lukemftpd ftpd -l -r
#ftp stream tcp6 nowait root /usr/libexec/lukemftpd ftpd -l -r
#ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
#ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6
#telnet stream tcp nowait root /usr/libexec/telnetd telnetd
#telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd
#shell stream tcp nowait root /usr/libexec/rshd rshd
#shell stream tcp6 nowait root /usr/libexec/rshd rshd
#login stream tcp nowait root /usr/libexec/rlogind rlogind
#login stream tcp6 nowait root /usr/libexec/rlogind rlogind
#finger stream tcp nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#finger stream tcp6 nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#

Yang kita rubah yaitu menghilangkan tanda pager (#) yang berada pada

ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l

Untuk menyimpan nya tekan Esc lalu tekan a 2 kali. Selanjutnya kita aktifkan inetd tersebut pada saat boot, edit /etc/rc.conf dengan cara seperti diatas yaitu tambahi baris berikut

intd_enable=”YES”

Selanjutnya restartlah mesin Anda, lalu uji cobalah mesin FTP Anda, buka Web Browser pada client Anda lalu ketikkan ftp://alamat_ip.

Demikian tentang pembuatan FTP server dengan Anonymous user. Semoga bermanfaat.

Advertisements

2 thoughts on “aktifin ftp di freeBSD

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s