1. pertama install FTP server dengan perintah :
- root@debian:~# apt-get install proftpd
2. selanjutnya masuk kedirektory dengan perintah :
- root@debian:~# cd /etc/proftp
3. kemudian edit file ftp :
- root@debian: /etc/proftpd# pico proftpd.conf
edit file seperti dibawah :
ServerName "ftp.yudha.com"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
hapus tanda pagar :
# Use this to jail all users in their homes
DefaultRoot
isikan pada baris paling bawah :
#
# </Anonymous>
<Anonymous /home/tkj>
user tkj
</Anonymous>
4. kemudian edit file di DNS :
root@debian: /etc/bind# pico yudha
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA yudha.com. root.yudha.com. (
2012092809 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS yudha.com.
IN A 192.168.10.47
yudha IN A 192.168.10.47
ftp IN A 192.168.10.47
root@debian: /etc/bind#db.yudha
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA yudha.com. root.yudha.com. (
2012092809 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS yudha.com.
47 IN PTR yudha.com.
47 IN PTR ftp.yudha.com.
5. kemudian buat direktory ykj :
- root@debian:/home# mkdir tkj
6. dan silah kan masuk ke direktory tkj
- kemudian buat folder untuk meletakkan file dan data,
7. root@debian:/home/user# cd /home
8. root@debian:/home# mkdir tkj
9. root@debian:/useradd tkj -p tkj -d /home/tkj/
10. root@debian:/home# cd /home/tkj
11. root@debian:/home/tkj#
12. selanjutnya, isikan user dan password,
root@debian:/home/user# adduser tkj
Adding user `tkj' ...
Adding new group `tkj' (1001) ...
Adding new user `tkj' (1001) with group `tkj' ...
The home directory `/home/tkj' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/home/tkj' does not belong to the user you are currently creating.
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
13. selanjutnya pengujian via localhost, isikan user password, disini saya menggunakan user tkj dan password tkj
root@debian:/home/user# ftp localhost
Connected to localhost.
220 ProFTPD 1.3.3a Server (Debian) [::1]
Name (localhost:user): tkj
331 Password required for tkj
Password:
230 User tkj logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
14. jika sudah, selanjutnya kita akan melakukan pengujian di browser, masuk ke browser dan ketikkan ftp.yudha.com,
jika muncul FTP dengan nama yang kita buat td,, ( tanda nya berhasill brayy :) )
langkah selanjutnya adalah sharing file, untuk konfigurasinya seperti berikut
root@debian:~# cp /home/user/Documents/yudha\ ari\ \(37\).odt /home/tkj/
- root@debian:~# apt-get install proftpd
2. selanjutnya masuk kedirektory dengan perintah :
- root@debian:~# cd /etc/proftp
3. kemudian edit file ftp :
- root@debian: /etc/proftpd# pico proftpd.conf
edit file seperti dibawah :
ServerName "ftp.yudha.com"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
hapus tanda pagar :
# Use this to jail all users in their homes
DefaultRoot
isikan pada baris paling bawah :
#
# </Anonymous>
<Anonymous /home/tkj>
user tkj
</Anonymous>
4. kemudian edit file di DNS :
root@debian: /etc/bind# pico yudha
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA yudha.com. root.yudha.com. (
2012092809 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS yudha.com.
IN A 192.168.10.47
yudha IN A 192.168.10.47
ftp IN A 192.168.10.47
root@debian: /etc/bind#db.yudha
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA yudha.com. root.yudha.com. (
2012092809 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS yudha.com.
47 IN PTR yudha.com.
47 IN PTR ftp.yudha.com.
5. kemudian buat direktory ykj :
- root@debian:/home# mkdir tkj
6. dan silah kan masuk ke direktory tkj
- kemudian buat folder untuk meletakkan file dan data,
7. root@debian:/home/user# cd /home
8. root@debian:/home# mkdir tkj
9. root@debian:/useradd tkj -p tkj -d /home/tkj/
10. root@debian:/home# cd /home/tkj
11. root@debian:/home/tkj#
12. selanjutnya, isikan user dan password,
root@debian:/home/user# adduser tkj
Adding user `tkj' ...
Adding new group `tkj' (1001) ...
Adding new user `tkj' (1001) with group `tkj' ...
The home directory `/home/tkj' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/home/tkj' does not belong to the user you are currently creating.
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
13. selanjutnya pengujian via localhost, isikan user password, disini saya menggunakan user tkj dan password tkj
root@debian:/home/user# ftp localhost
Connected to localhost.
220 ProFTPD 1.3.3a Server (Debian) [::1]
Name (localhost:user): tkj
331 Password required for tkj
Password:
230 User tkj logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
14. jika sudah, selanjutnya kita akan melakukan pengujian di browser, masuk ke browser dan ketikkan ftp.yudha.com,
jika muncul FTP dengan nama yang kita buat td,, ( tanda nya berhasill brayy :) )
langkah selanjutnya adalah sharing file, untuk konfigurasinya seperti berikut
root@debian:~# cp /home/user/Documents/yudha\ ari\ \(37\).odt /home/tkj/
No comments:
Post a Comment
kritik dan saran nya ,, saya tunggu ya :)