echo 'sat:*:100:100::/var:/bin/false' >> /var/etc/passwd
passwd sat
mkdir /var/empty
chmod 750 /var/empty
# Создать /var/etc/vsftpd.conf
=================================
listen=yes
connect_from_port_20=yes
idle_session_timeout=14400
anonymous_enable=no
local_enable=yes
check_shell=no
write_enable=yes
local_umask=022
secure_chroot_dir=/var/empty
chroot_local_user=yes
#chroot_list_enable=yes
#chroot_list_file=/etc/vsftpd.chroot_list
dirmessage_enable=yes
ftpd_banner=*** Welcome to WMCS-SAT01 ***
#ls_recurse_enable=yes
xferlog_enable=no
xferlog_file=/tmp/vsftpd-x.log
xferlog_std_format=YES
vsftpd_log_file=/tmp/vsftpd.log
log_ftp_protocol=yes
dual_log_enable=yes
=================================
# Создать /var/etc/extend.sh
=================================
#!/bin/bash
/etc/init.d/vsftpd stop
/usr/sbin/vsftpd /var/etc/vsftpd.conf &
=================================
cd /var
ln -s . /var/var
chown sat /var/etc/_*
chown sat /var/keys/*
https://security.appspot.com/vsftpd/vsftpd_conf.html