fix for aditional ftp accounts

This commit is contained in:
Serghey Rodin 2016-12-08 16:20:48 +02:00
commit 039a989fb2
5 changed files with 11 additions and 2 deletions

View file

@ -51,7 +51,7 @@ is_password_valid
get_domain_values 'web'
# Defining ftp user shell
shell='/sbin/nologin'
shell=$(which nologin)
if [ ! -z "$FTP_SHELL" ]; then
shell=$FTP_SHELL
fi

View file

@ -268,7 +268,7 @@ rebuild_web_domain_conf() {
# Adding ftp users
if [ -z "$FTP_SHELL" ]; then
shell='/sbin/nologin'
shell=$(which nologin)
if [ -e "/usr/bin/rssh" ]; then
shell='/usr/bin/rssh'
fi

View file

@ -886,6 +886,9 @@ if [ "$vsftpd" = 'yes' ]; then
update-rc.d vsftpd defaults
service vsftpd start
check_result $? "vsftpd start failed"
# To be deleted after release 0.9.8-18
echo "/sbin/nologin" >> /etc/shells
fi

View file

@ -937,6 +937,9 @@ if [ "$vsftpd" = 'yes' ]; then
chkconfig vsftpd on
service vsftpd start
check_result $? "vsftpd start failed"
# To be deleted after release 0.9.8-18
echo "/sbin/nologin" >> /etc/shells
fi

View file

@ -901,6 +901,9 @@ if [ "$vsftpd" = 'yes' ]; then
update-rc.d vsftpd defaults
service vsftpd start
check_result $? "vsftpd start failed"
# To be deleted after release 0.9.8-18
echo "/sbin/nologin" >> /etc/shells
fi