[lxc-devel] [lxd/master] lxc/shell: Switch to using su -l

stgraber on Github lxc-bot at linuxcontainers.org
Mon Nov 20 20:24:59 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171120/d4633a1b/attachment.bin>
-------------- next part --------------
From 0383d8a85cd9ad6df2290257d6bca593b28f7ef6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 20 Nov 2017 15:24:33 -0500
Subject: [PATCH] lxc/shell: Switch to using su -l
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #4036

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc/main.go b/lxc/main.go
index 4e5ba8d78..0e6575363 100644
--- a/lxc/main.go
+++ b/lxc/main.go
@@ -272,7 +272,7 @@ var commands = map[string]command{
 // defaultAliases contains LXC's built-in command line aliases.  The built-in
 // aliases are checked only if no user-defined alias was found.
 var defaultAliases = map[string]string{
-	"shell": "exec @ARGS@ -- login -f root",
+	"shell": "exec @ARGS@ -- su -l",
 
 	"cp": "copy",
 	"ls": "list",


More information about the lxc-devel mailing list