We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9314156 commit 84f3eb6Copy full SHA for 84f3eb6
bin/v-add-user-ssh-jail
@@ -51,6 +51,7 @@ if [ -d "/home/$user" ]; then
51
chown root:root /home/$user
52
fi
53
54
+# Prevent from enabling for users hen rssh or nologin is enabled
55
user_str=$(grep "^$user:" /etc/passwd | egrep "rssh|nologin")
56
if [ -n "$user_str" ]; then
57
exit
func/rebuild.sh
@@ -126,6 +126,7 @@ rebuild_user_conf() {
126
chown root:root $HOMEDIR/$user/conf
127
128
$BIN/v-add-user-sftp-jail "$user"
129
+ # Check if SHELL_JAIL_ENABLED
130
if [ "$SHELL_JAIL_ENABLED" == "yes" ]; then
131
$BIN/v-add-user-ssh-jail "$user"
132
0 commit comments