[pve-devel] [PATCH v2 manager 06/12] api: update comment about login prompt for non-root users

Oguz Bektas o.bektas at proxmox.com
Fri Mar 11 12:24:58 CET 2022


we have a SU privilege now, but we still drop to a login prompt for such
users.

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 PVE/API2/Nodes.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 655493a3..0c3de231 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -870,7 +870,7 @@ sub get_shell_command  {
 	    $cmd = [ '/bin/login', '-f', 'root' ];
 	}
     } else {
-	# non-root must always login for now, we do not have a superuser role!
+	# non-root must always login, even with SU privilege
 	$cmd = [ '/bin/login' ];
     }
     return $cmd;
-- 
2.30.2






More information about the pve-devel mailing list