[systemd-devel] machinectl shell

arnaud gaboury arnaud.gaboury at gmail.com
Sun Oct 4 02:49:53 PDT 2015


On Sun, Oct 4, 2015 at 11:34 AM, Tobias Hunger <tobias.hunger at gmail.com> wrote:
> Hi Arnaud,
>
> Am 04.10.2015 11:27 schrieb "arnaud gaboury" <arnaud.gaboury at gmail.com>:
>>
>> First, thank you for this new feature. I do think this is a much more
>> clean way to log as root.
>>
>> I just can't get the correct shell, which is /bin/zsh:
>>
>> /etc/passwd
>> -------------------------------
>> root:x:0:0:root:/root:/usr/bin/zsh
>> -----------------------------
>
> Is this from the container or the host?

On the host. I just want to use this command instead of $ su
In fact, it is like machinectl is not aware of the original $SHELL
variable, as writen in /etc/password. Surprisngly, every all env
variables are correctly set .Thus my idea to write it somewhere.

>
>> $ machinectl shell
>> brings me to sh.
>
> When I set the root shell in /etc/passwd of the container, then that works
> for me most of the time. "Most of the time" since bigger shells seem to
> sometimes run into a timeout and then I only get an error message and no
> shell. Re-running machinectl shell helps when that happens.
>
> Best Regards,
> Tobias



-- 

google.com/+arnaudgabourygabx


More information about the systemd-devel mailing list