We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bbebeb commit c868adcCopy full SHA for c868adc
1 file changed
server/plugins-available/shelluser_base_plugin.inc.php
@@ -96,7 +96,7 @@ function insert($event_name, $data) {
96
return false;
97
}
98
99
- if($data['new']['active'] != 'y') $data['new']['shell'] = '/bin/false';
+ if($data['new']['active'] != 'y' || $data['new']['chroot'] == "jailkit") $data['new']['shell'] = '/bin/false';
100
101
if($app->system->is_user($data['new']['puser'])) {
102
0 commit comments