Re: [systemd-devel] machinectl shell .bashrc

2023-08-16 Thread Mantas Mikulėnas
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

[systemd-devel] machinectl shell .bashrc

2023-08-16 Thread LuKaRo
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

Re: [systemd-devel] machinectl shell vs systemd-run

2016-11-11 Thread Lennart Poettering
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: > >

[systemd-devel] machinectl shell vs systemd-run

2016-11-05 Thread Wilhelm Schuster
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,

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-17 Thread Lennart Poettering
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

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-17 Thread arnaud gaboury
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

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-16 Thread Chris Bell
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

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-16 Thread Chris Bell
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

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-14 Thread Lennart Poettering
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

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-14 Thread Chris Bell
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.

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-12 Thread arnaud gaboury
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

Re: [systemd-devel] Machinectl shell/login do not attach to console

2015-10-12 Thread Chris Bell
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

[systemd-devel] Machinectl shell/login do not attach to console

2015-10-05 Thread Chris Bell
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

Re: [systemd-devel] machinectl shell

2015-10-04 Thread Tobias Hunger
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 > --- >

[systemd-devel] machinectl shell

2015-10-04 Thread 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 --- root:x:0:0:root:/root:/usr/bin/zsh - $ machinectl shell brings me to sh.

Re: [systemd-devel] machinectl shell

2015-10-04 Thread arnaud gaboury
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

Re: [systemd-devel] machinectl shell

2015-10-04 Thread Tomasz Torcz
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 > --- >

Re: [systemd-devel] machinectl shell

2015-10-04 Thread arnaud gaboury
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

Re: [systemd-devel] machinectl shell problems

2015-09-06 Thread Lennart Poettering
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.

[systemd-devel] machinectl shell problems

2015-09-05 Thread Michał Zegan
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