From bf403ca01cd45103e94b06a7f8e42a1601298201 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 3 Nov 2018 12:49:22 +0100 Subject: [PATCH] system: whoopsie, opnsense stuff not for non-root shelling :) --- src/etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index ca8f4daf7..cba9f3d6f 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -364,7 +364,7 @@ function auth_get_shells($uid = 0) foreach ($etc_shells as $shell) { $shell = trim($shell); if (!empty($shell) && strpos($shell, '#') !== 0 && - strpos($shell, '/usr/local/etc/rc') !== 0) { + strpos($shell, '/usr/local/sbin/opnsense-') !== 0) { $shells[$shell] = $shell; } }