From 2f87d58f9adc848b75db8a8a5ab2c1aad0b0f220 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 7 Sep 2023 14:22:05 +0200 Subject: [PATCH] system: /usr/sbin/nologin seems to be the authoritative one --- src/etc/inc/auth.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 0e3894478..255688bf4 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -207,7 +207,7 @@ function userIsAdmin($username) function auth_get_shells($uid = 0) { - $shells = array('' => '/sbin/nologin'); + $shells = array('' => '/usr/sbin/nologin'); if ($uid == 0) { $shells = array('' => '/usr/local/sbin/opnsense-shell'); @@ -344,7 +344,7 @@ function local_user_set(&$user, $force_password = false, $userattrs = null) $user_group = 'wheel'; $user_home = '/root'; } else { - $user_shell = isset($user['shell']) ? $user['shell'] : '/sbin/nologin'; + $user_shell = isset($user['shell']) ? $user['shell'] : '/usr/sbin/nologin'; $user_home = "/home/{$user_name}"; $user_group = 'nobody'; }