summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 8736c1c..ac9bc9a 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -288,10 +288,10 @@ function local_user_set(& $user) {
/* configure shell type */
if (userHasPrivilege($user, "user-shell-access") || userHasPrivilege($user, "page-all")) {
$user_shell = "/bin/tcsh";
- } elseif (!userHasPrivilege($user, "user-copy-files")) {
- $user_shell = "/sbin/nologin";
- } else {
+ } elseif (userHasPrivilege($user, "user-copy-files")) {
$user_shell = "/usr/local/bin/scponly";
+ } else {
+ $user_shell = "/sbin/nologin";
}
/* root user special handling */
OpenPOWER on IntegriCloud