์ƒˆ์†Œ์‹

์ธ๊ธฐ ๊ฒ€์ƒ‰์–ด

๐Ÿ’ป Linux

CentOS7 Vsftpd ์„ค์น˜ , Ubuntu Vsftpd ์„ค์น˜

  • -
๋ฐ˜์‘ํ˜•
# Vsftpd ์„ค์น˜
yum -y install vsftpd
rpm -qa | grep vsftpd  #์„ค์น˜ ํ™•์ธ
systemctl restart vsftpd
systemctl enable vsftpd
systemctl status vsftpd

cd /var/ftp #ftp ํŒŒ์ผ ํ™•์ธ
cd pub
cp /boot/vmlinuz-0-rescue-0980594ad40741459f50ed86e038e729 test

setenforce 0
firewall-config
 > Run/์˜๊ตฌ์  ๋‘˜๋‹ค ftp ์„ ํƒ

<ftp://192.168.111.100/>

vim /etc/vsftpd/vsftpd.conf # vsftpd ์„ค์ • ํŒŒ์ผ
29 anon_upload_enable=YES
 30 #
 31 # Uncomment this if you want the anonymous FTP user to be able to create
 32 # new directories.
 33 anon_mkdir_write_enable=YES
# ์ต๋ช…์˜ ์‚ฌ์šฉ์ž์—๊ฒŒ ํŒŒ์ผ ์—…๋กœ๋“œ/ํด๋” ์ƒ์„ฑ ๊ถŒํ•œ ๋ถ€์—ฌ

ftpd_banner=Chaen's FTP Server # ftp์— ๋ฐฐ๋„ˆ ๋งŒ๋“ค๊ธฐ

systemctl restart vsftpd

chown ftp.ftp /var/ftp/pub/ # ์†Œ์œ ๊ถŒ ๋ณ€๊ฒฝ
# Ubuntu vsftpd(upload,download)

# vsftpd ์„ค์น˜
apt -y install vsftpd

# vsftpd ์„ค์ • ํŒŒ์ผ ์ˆ˜์ •
vim /etc/vsftpd.conf
	> 25 anonymous_enable=NO ---- YES๋กœ ๋ณ€๊ฒฝ
		31 #write_enable=YES ------ ์ฃผ์„(#) ์ œ๊ฑฐ
		40 #anon_upload_enable=YES  ์ฃผ์„(#) ์ œ๊ฑฐ
		44 #anon_mkdir_write_enable=YES ์ฃผ์„(#) ์ œ๊ฑฐ

# ํด๋” ์ถ”๊ฐ€ ๋ฐ ๊ถŒํ•œ ์„ค์ •
cd /srv/ftp
mkdir upload
chmod 777 upload # ๋””๋ ‰ํ„ฐ๋ฆฌ ํ—ˆ๊ฐ€๊ถŒ ๋ณ€๊ฒฝ
cd upload
cp /boot/vmlinuz-* upload # ์ƒ˜ํ”Œ ํŒŒ์ผ ๋ณต์‚ฌ
ls -l # ๋ณต์‚ฌํ•œ ์ƒ˜ํ”Œ ํŒŒ์ผ ํ™•์ธ

cd /srv/ftp
mkdir download
chmod 777 download # ๋””๋ ‰ํ„ฐ๋ฆฌ ํ—ˆ๊ฐ€๊ถŒ ๋ณ€๊ฒฝ
cd download
cp /boot/vmlinuz-* download # ์ƒ˜ํ”Œ ํŒŒ์ผ ๋ณต์‚ฌ
ls -l # ๋ณต์‚ฌํ•œ ์ƒ˜ํ”Œ ํŒŒ์ผ ํ™•์ธ

# ํŒŒ์ผ ์งˆ๋ผ ์„ค์น˜ ํ›„
ํ˜ธ์ŠคํŠธ : 192.168.0.41 (Ubuntu IP)
์‚ฌ์šฉ์ž๋ช… : anonymous

๋ฐ˜์‘ํ˜•
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.