添加用户
useradd -d /usr/xxx -m -s /bin/bash xxx
passwd xxx
允许sudo
chmod u+w /etc/sudoers
vim /etc/sudoers
在root ALL=(ALL:ALL) ALL下添加xxx ALL=(ALL:ALL) ALL保存退出
chmod u-w /etc/sudoers
sudo apt-get install vsftpd
sudo chmod a+w /etc/vsftpd.conf
vim /etc/vsftpd.conf
把write_enable=YES前的#去掉,保存退出
sudo chmod a-w vsftpd.conf
sudo service vsftpd restart