Friday, May 16, 2014

Waldorf: vsftpd setup

Install vsftpd
sudo apt-get install vsftpd
Peek the configuration.
cat /etc/vsftpd.conf | grep -v "#"
listen=YES
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
Edit configuration to allow local user to upload/download files
sudo vi /etc/vsftpd.conf
Restart service to load the config change
sudo service vsftpd restart
Now create a local NINJA user
sudo useradd --home /home/ninja --create-home --shell /bin/bash ninja
Set password for ninja
sudo passwd ninja
In another machine, open web browser and enter URL as follows:
ftp://{id-address_or_hostname_of_ftp_server}:21
Enter ninja as login name; password for the password. Useful ftp commands
put {local_file_name}  {remote_file_name}
get {remote_file_name}

No comments:

Post a Comment