mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
ftp users with nologin shell by default
This commit is contained in:
parent
44be086dfc
commit
1113e1f807
1 changed files with 2 additions and 6 deletions
|
@ -51,12 +51,8 @@ is_password_valid
|
||||||
get_domain_values 'web'
|
get_domain_values 'web'
|
||||||
|
|
||||||
# Defining ftp user shell
|
# Defining ftp user shell
|
||||||
if [ -z "$FTP_SHELL" ]; then
|
|
||||||
shell='/sbin/nologin'
|
shell='/sbin/nologin'
|
||||||
if [ -e "/usr/bin/rssh" ]; then
|
if [ ! -z "$FTP_SHELL" ]; then
|
||||||
shell='/usr/bin/rssh'
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
shell=$FTP_SHELL
|
shell=$FTP_SHELL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue