Skip to content

Commit 1113e1f

Browse files
committed
ftp users with nologin shell by default
1 parent 44be086 commit 1113e1f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bin/v-add-web-domain-ftp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,8 @@ is_password_valid
5151
get_domain_values 'web'
5252

5353
# Defining ftp user shell
54-
if [ -z "$FTP_SHELL" ]; then
55-
shell='/sbin/nologin'
56-
if [ -e "/usr/bin/rssh" ]; then
57-
shell='/usr/bin/rssh'
58-
fi
59-
else
54+
shell='/sbin/nologin'
55+
if [ ! -z "$FTP_SHELL" ]; then
6056
shell=$FTP_SHELL
6157
fi
6258

0 commit comments

Comments
 (0)