By default `machinectl shell` runs the user's shell with the "login" flag,
exactly as during console or SSH logins. For Bash, that means it will look
for ~/.bash_profile or ~/.profile *instead of* ~/.bashrc.
Usually people have a ~/.bash_profile that sets up "once per session"
things if any, then
Hi,
somehow, when using machinectl shell to access my nspawn containers, my
.bashrc is ignored, although bash is correctly used as my shell.
However, when specifying /bin/bash explicitly, the .bashrc gets sourced
correctly. Any ideas?
*lukas@home*:*~*$ sudo machinectl shell x11
Connected to
On Sat, 05.11.16 21:06, Wilhelm Schuster (w...@wilhelm.re) wrote:
> Hi,
>
> I’m trying to run a command inside a container (spawned via
> nspawn). `machinectl shell` and `systemd-run` seem like two ways
> that accomplish that in systemd. Machinectl’s man page [0] states
> the following:
>
>
Hi,
I’m trying to run a command inside a container (spawned via nspawn).
`machinectl shell` and `systemd-run` seem like two ways that accomplish that in
systemd. Machinectl’s man page [0] states the following:
Note that systemd-run(1) may be used in place of the shell command, […].
However,
On Fri, 16.10.15 14:01, Chris Bell (cwb...@narmos.org) wrote:
> On 2015-10-16 13:55, Chris Bell wrote:
> >On 2015-10-14 15:58, Lennart Poettering wrote:
> >>On Mon, 05.10.15 12:30, Chris Bell (cwb...@narmos.org) wrote:
> >>
> >>>Hi all,
> >>>
> >>>I have an Arch machine with systemd 226, running
Honestly, I don't think your issue has to do with the container systemd version.
On my host, archlinux: systemd 227-1
On my container, Fedora 22: sysetemd 219
-
# machinectl login poppy
[sudo] password for gabx:
Connected to machine poppy. Press ^] three
On 2015-10-16 13:55, Chris Bell wrote:
On 2015-10-14 15:58, Lennart Poettering wrote:
On Mon, 05.10.15 12:30, Chris Bell (cwb...@narmos.org) wrote:
Hi all,
I have an Arch machine with systemd 226, running an Arch container,
also
with systemd 226. For whatever reason in 225, `machinectl
On 2015-10-14 15:58, Lennart Poettering wrote:
On Mon, 05.10.15 12:30, Chris Bell (cwb...@narmos.org) wrote:
Hi all,
I have an Arch machine with systemd 226, running an Arch container,
also
with systemd 226. For whatever reason in 225, `machinectl login`
stopped
working correctly, and in
On Mon, 05.10.15 12:30, Chris Bell (cwb...@narmos.org) wrote:
> Hi all,
>
> I have an Arch machine with systemd 226, running an Arch container, also
> with systemd 226. For whatever reason in 225, `machinectl login` stopped
> working correctly, and in 226 `machinectl login` does not work
On 2015-10-12 12:35, arnaud gaboury wrote:
On Mon, Oct 5, 2015 at 2:30 PM, Chris Bell wrote:
Hi all,
I have an Arch machine with systemd 226,
which arch version exactly? I had the same issue with 226. It is gone
with 226-3.
setup: Arch host running Fedora container.
On Mon, Oct 5, 2015 at 2:30 PM, Chris Bell wrote:
> Hi all,
>
> I have an Arch machine with systemd 226,
which arch version exactly? I had the same issue with 226. It is gone
with 226-3.
setup: Arch host running Fedora container.
running an Arch container, also
> with systemd
On 2015-10-05 12:30, Chris Bell wrote:
I have an Arch machine with systemd 226, running an Arch container,
also with systemd 226. For whatever reason in 225, `machinectl login`
stopped working correctly, and in 226 `machinectl login` does not work
properly. It attaches to the machine, but does
Hi all,
I have an Arch machine with systemd 226, running an Arch container, also
with systemd 226. For whatever reason in 225, `machinectl login` stopped
working correctly, and in 226 `machinectl login` does not work properly.
It attaches to the machine, but does not seem to redirect stdin
Hi Arnaud,
Am 04.10.2015 11:27 schrieb "arnaud gaboury" :
>
> 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
> ---
>
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
-
$ machinectl shell
brings me to sh.
On Sun, Oct 4, 2015 at 11:34 AM, Tobias Hunger wrote:
> Hi Arnaud,
>
> Am 04.10.2015 11:27 schrieb "arnaud gaboury" :
>>
>> 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
On Sun, Oct 04, 2015 at 11:27:20AM +0200, arnaud gaboury wrote:
> 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
> ---
>
On Sun, Oct 4, 2015 at 11:49 AM, Tomasz Torcz wrote:
> On Sun, Oct 04, 2015 at 11:27:20AM +0200, arnaud gaboury wrote:
>> 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
On Sat, 05.09.15 13:48, Michał Zegan (webczat_...@poczta.onet.pl) wrote:
> Hello.
>
> I have a kvm vps running archlinux with systemd-225, I have just upgraded
> systemd and probably restarted most of the systemd components.
> I am trying machinectl shell from my ordinary user session over ssh.
Hello.
I have a kvm vps running archlinux with systemd-225, I have just
upgraded systemd and probably restarted most of the systemd components.
I am trying machinectl shell from my ordinary user session over ssh. it
gives me the possibility to authenticate as admin, then says that it
20 matches
Mail list logo