Instalasi dan Konfigurasi vsftpd pada Debian
Instalasi dan Konfigurasi vsftpd pada Debian
Install:
Code:
~# apt-get install vsftpd (enter)
Stop vsftpd service:
Code:
~# /etc/init.d/vsftpd stop
Configure vsftpd.conf:
Code:
~# nano /etc/vsftpd.conf
Modify vsftd.conf like this:
Code:
anonymous_enable=NO
local_enable=YES
write_enable=YES Archives
connect_from_port_20=NO
chroot_local_user=YES
local_umask=022
Adding a user:
Code:
~# useradd -d /path/to/your/dir -s /usr/sbin/nologin username
~# passwd username
Giving username permission to read/write:
Code:
~# chown -R username /path/to/your/dir
~# chmod 775 /path/to/your/dir
Create a file:
Code:
~# nano /etc/vsftpd.userlist
Write the username into the file and then save with 'ctrl+o' and hit enter:
Now open vsftpd.conf once more:
Code:
~# nano /etc/vsftpd.conf
Add this at the end of the file and save it with ctrl+o again:
Code:
# the list of users to give access userlist_file=/etc/vsftpd.userlist
# this list is on userlist_enable=YES
# It is not a list of users to deny ftp access userlist_deny=NO
Now add 'nologin' to the shell set:
Code:
nano /etc/shells
The file should look like this:
Code:
/bin/ksh /usr/bin/rc /usr/bin/tcsh /bin/tcsh /usr/bin/esh /bin/dash
/bin/bash /bin/rbash
Add this line at the end:
/usr/sbin/nologin
Create a usergroup and add 'username' to it:
Code:
~#addgroup username
~#usermod -Gftpusers username
Finally start the vsftpd service:
Code:
/etc/init.d/vsftpd restart
If I missed a setting in vsftpd.conf you can also compare your settings
with mine: Paste2 - http://anonym.to/?http://paste2.org/p/2381253
If you have questions left feel free to poste in this thread.
Source:
http://www.torrent-invites.com/seedbox-tutorials/218663-installing-configure-vsftpd-debian.html
Komentar
Posting Komentar