You are not logged in.

#1 2015-09-11 04:46:20

stozi
Member
Registered: 2010-03-02
Posts: 149

machinectl shell

So should we be using 'machinectl shell' instead of su/sudo now?

http://linux.softpedia.com/blog/systemd … 0418.shtml

from the --help I don't quite get what 'shell [[USER@]NAME [COMMAND...]' means. I tried this:

$ machinectl shell root@myhost pacman -Syu

obviously laughably wrong because it said:

machinectl: invalid option -- 'S' 

Offline

#2 2015-09-11 07:44:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,798

Re: machinectl shell

It isn't a replacement, it's an addition that makes some guarantees to the login environment su doesn't provide (it creates a completely new shell which su doesn't) read the following links for a rationale instead of some sensationalist journalism: https://github.com/systemd/systemd/issu … -127917622 https://github.com/systemd/systemd/pull/1022 It is mostly relevant if you are using systemd containers from what I gather

Offline

Board footer

Powered by FluxBB