Setting Anonymous FTP in Mandriva Linux 2009.0
ophay experiments

Sejak rilis Mandriva 2007.1 proftpd sudah tidak otomatis lagi mensuport Anonymous FTP. Hal ini karena alasan keamanan sebuah distro, namun tidak lepas dari alasan tadi, Anonymous FTP masih tetap diperlukan oleh sebagian user untuk keperluan-keperluan tertentu,misalkan saja seperti pengalamanku yang kemaren hendak mau membuat server repo local Mandriva yang memanfaatkan service FTP khususnya Anonymous FTP.
Nah…ni ada sedikit trik singkat untuk bisa tetap memanfaatkan Anonymous di beberapa distro linux terutama Mandriva Linux 2009.0 yang FTP Anonymous nya didisable.
Langkah pertama yang harus disiapkan adalah menginstall proftpd, dengan perintah
[root@ophay ophay]# urpmi proftpd
kemudian cari file-file proftpd dengan command :
[root@ophay ophay]# whereis proftpd
Edit file konfigurasi proftpd dengan perintah
[root@ophay ophay]# gedit /etc/proftpd.conf
Lalu tambahkan script dibawah ini :
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /mnt/win_e/repo01_Mandriva_2009.0/main/release>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want ‘welcome.msg’ displayed at login, and ‘.message’ displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
kemudian save
jalankan proftpd sebagai anonymous, seperti dibawah ini
dengan username : anonymous
password : apaaja
[root@ophay ophay]# ftp 127.0.0.1
Connected to 127.0.0.1.
220 ProFTPD 1.3.1 Server (ProFTPD Default Installation)[127.0.0.1]
500 AUTH not understood
Name (127.0.0.1:ophay): anonymous
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
jika hasilnya seperti diatas, maka anonymous FTP nya sudah berhasil





Pertamax
Comment by ãñÐrî — January 24, 2009 @ 1:01 am
yup
Comment by Administrator — January 24, 2009 @ 2:05 am