farnodes / sysadmin

0 stars 0 forks source link

[Server- FTP] #15

Open rsingh0706 opened 1 month ago

rsingh0706 commented 1 month ago

Overview FTP

Service name: FTP service Port: 21 Usage description: FTP (File Transfer Protocol) is a standard network protocol used for the transfer of files from one host to another over a TCP-based network, such as the Internet. CLI:
server vm installed

sudo apt update
sudo apt install vsftpd
sudo systemctl start vsftpd
sudo systemctl enable vsftpd
sudo systemctl status vsftpd

User: maya (File Uploader) (read/write) Aditya Singh (read-only)

Path:

config_files

/etc/vsftpd.conf
/etc/vsftpd.conf.d/
local_enable=YES
write_enable=YES
chroot_local_user=YES
sudo systemctl restart vsftpd
ftp test the server

User Access = sudo echo ''maya'' | sudo tee -a /etc/vsftpd.userlist

Error logs /var/log/vsftpd.log additional logs /var/log/syslog or /var/log/auth.log

Security Considerations: (research on it):

  1. client VM insall
sudo apt update
sudo apt install lftp
lftp user@ip server

commends use:- ls, put , get

  1. list what can you do with it