Install FTP Server dengan ProFTP di FreeBSD

1. Masuk ke port

# cd /usr/ports/ftp/proftpd

2.Melakukan instalasi

# make && make install

3. Edit isi ProFTP

# ee /usr/local/etc/proftpd.conf

4.Untuk menjalankan ftpd

# /usr/local/sbin/ftpd

5. Masuk ke “/etc/rc.local” dan memasukkan # /usr/local/sbin/ftpd

6. Membuat user untuk access

# adduser

Username: ftp

Full name: ftp user

Uid (Leave empty for default):

Login group [ftp]:

Login group is joe. Invite joe into other groups? []:

Login class [default]:

Shell (sh csh tcsh bash nologin) [csh]:nologin

Home directory [/home/ftp]:/var/ftp

Lock out the account after creation? [no]:

Username : ftp

Password : <disabled>

Full Name : FTP User

Uid : 1002

Class :

Groups : ftp

Home : /var/ftp

Shell : /usr/sbin/nologin

Locked : no

OK? (yes/no): yes

adduser: INFO: Successfully added (ftp) to the user database.

Add another user? (yes/no): no

Goodbye!

7. Biar kita bisa diperbolehkan login

#ee /etc/shells

# $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $

#

# List of acceptable shells for chpass(1).

# Ftpd will not allow users to connect who are not using

# one of these shells.

/bin/sh

/bin/csh

/bin/tcsh

/sbin/nologin

/usr/sbin/nologin

8. Membuar directory untuk penyimpanan file

#mkdir /var/ftp/pub

9. Menggantikan kepemilikan

#chown ftp:ftp /var/ftp/pub

10. setting permission

#chmod … /var/ftp/pub

11. Membuat user private aduser

# adduser

Username: ftpadmin

Full name: Admin

Uid (Leave empty for default):

Login group [ftpadmin]:

Login group is joe. Invite joe into other groups? []:

Login class [default]:

Shell (sh csh tcsh bash nologin) [sh]:

Home directory [/home/joe]:/var/ftp

Use password-based authentication? [yes]:

Use an empty password? (yes/no) [no]:

Use a random password? (yes/no) [yes]:

Lock out the account after creation? [no]:

Username : ftpadmin

Password : ******

Full Name :

Uid : 1002

Class :

Groups : ftpadmin

12. Membuar directory untuk penyimpanan file

#mkdir /var/ftp/pribadi

13. Menggantikan kepemilikan

#chown ftp:ftp /var/ftp/pribadi

14. setting permission

#chmod … /var/ftp/pribadi

Advertisement

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 )

Connecting to %s