This year, our company used Ubuntu servers and previously used CentOS. In the afternoon, I set up a community for the company and set up an FTP. In consideration of security, the FTP user is prohibited from logging on to the system. I set the FTP User shell such as ftp1 to nologin, I couldn't log on to the test FTP. I found that there are many differences between Ubuntu and CentOS, and there are some differences in apache configuration. The company's server system is Ubuntu11.10. # Whichnologin/
This year, our company used Ubuntu servers and previously used CentOS. In the afternoon, I set up a community for the company and set up an FTP. In consideration of security, the FTP user is prohibited from logging on to the system. I set the FTP User shell such as ftp1 to nologin, I couldn't log on to the test FTP. I found that there are many differences between Ubuntu and CentOS, and there are some differences in apache configuration. The company's server system is Ubuntu 11.10.
# Which nologin
/Usr/sbin/nologin
# Vim/etc/shells
#/Etc/shells: valid login shells
/Bin/csh
/Bin/sh
/Usr/bin/es
/Usr/bin/ksh
/Bin/ksh
/Usr/bin/rc
/Usr/bin/tcsh
/Bin/tcsh
/Usr/bin/esh
/Bin/dash
/Bin/bash
/Bin/rbash
/Usr/bin/screen
No/usr/sbin/nologin found
Therefore, after this file,/usr/sbin/nologin is added.
# Usermod-s/usr/sbin/nologin ftp1
# Su-ftp1
This account is currently not available. You cannot log on to the system. The FTP logon is successful.