Skip to content

Commit c868adc

Browse files
author
Till Brehm
committed
Fixed #5578
1 parent 2bbebeb commit c868adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function insert($event_name, $data) {
9696
return false;
9797
}
9898

99-
if($data['new']['active'] != 'y') $data['new']['shell'] = '/bin/false';
99+
if($data['new']['active'] != 'y' || $data['new']['chroot'] == "jailkit") $data['new']['shell'] = '/bin/false';
100100

101101
if($app->system->is_user($data['new']['puser'])) {
102102

0 commit comments

Comments
 (0)