mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -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'
|
||||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue