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

Signed-off-by: Oguz Bektas <o.bek...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to