ftp users with nologin shell by default

This commit is contained in:
Serghey Rodin 2016-09-29 23:15:01 +03:00
commit 1113e1f807

View file

@ -51,12 +51,8 @@ is_password_valid
get_domain_values 'web'
# Defining ftp user shell
if [ -z "$FTP_SHELL" ]; then
shell='/sbin/nologin'
if [ -e "/usr/bin/rssh" ]; then
shell='/usr/bin/rssh'
fi
else
shell='/sbin/nologin'
if [ ! -z "$FTP_SHELL" ]; then
shell=$FTP_SHELL
fi