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
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
ScoreboardFile /var/run/proftpd.scoreboard
Port 21
Umask 022
MaxInstances 30
User ftp
Group ftp
DefaultRoot /ftp
AllowOverwrite on
DenyAll
4.Untuk menjalankan ftpd
# /usr/local/sbin/proftpd
5. Masuk ke “/etc/rc.local” dan memasukkan # /usr/local/sbin/proftpd
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]:/ftp
Lock out the account after creation? [no]:
Username : ftp
Password :
Full Name : FTP User
Uid : 1002
Class :
Groups : ftp
Home : /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 /ftp/pub
9. Menggantikan kepemilikan
#chown ftp:ftp /ftp/pub
10. setting permission
#chmod 0777 /ftp/pub
No comments:
Post a Comment