logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: 93d196f0341f1d1370250bd9a6b44fcb365404a7
parent 9f4bccd3e2469a3d98ee09b20e378befe37c0bbe
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 25 May 2020 15:44:28 +0200

articles/systemd-eated-su: kbd+samp

Diffstat:

Marticles/systemd-eated-su.xhtml26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/articles/systemd-eated-su.xhtml b/articles/systemd-eated-su.xhtml @@ -5,8 +5,8 @@ <p>Pretty clear, it ask for root or specified user password, launches a shell. If <code>-</code>, <code>-l</code>, <code>--login</code> is put it starts a new environement before starting the shell.</p> <blockquote>To keep this somewhat managable we decided to only switch the absolute minimum over, and that excludes `XDG_RUNTIME_DIR`, specifically because `XDG_RUNTIME_DIR` is actually bound to the `session/audit` runtime and those we do not transition. Instead we simply unset it.</blockquote> <p>Ah, of course desktop crap in the userland… And crappy explanation, maybe you should patent and copyreich that in case. ᕕ(ᐛ)ᕗ</p> -<blockquote><pre><code>$ cat /etc/os-release -NAME=Fedora VERSION="24 (Workstation Edition)" +<blockquote><pre><code>$ <kbd>cat /etc/os-release</kbd> +<samp>NAME=Fedora VERSION="24 (Workstation Edition)" ID=fedora VERSION_ID=24 PRETTY_NAME="Fedora 24 (Workstation Edition)" @@ -22,21 +22,21 @@ PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy VARIANT="Workstation Edition" VARIANT_ID=workstation -$systemctl --version -systemd 225 -+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN</code></pre></blockquote> +</samp>$ <kbd>systemctl --version</kbd> +<samp>systemd 225 ++PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN</samp></code></pre></blockquote> <p>Okay here’s the same shit from a non voided system. Let’s share. ;D</p> <pre><code> -% cat /etc/os-release -ID=gentoo +% <kbd>cat /etc/os-release</kbd> +<samp>ID=gentoo PRETTY_NAME="Gentoo/Linux" ANSI_COLOR="1;32" HOME_URL="http://www.gentoo.org/" SUPPORT_URL="http://www.gentoo.org/main/en/support.xml" BUG_REPORT_URL="https://bugs.gentoo.org/" -% rc --version -rc (OpenRC) 0.17 (Gentoo Linux) -</code></pre> +</samp>% <kbd>rc --version</kbd> +<samp>rc (OpenRC) 0.17 (Gentoo Linux) +</samp></code></pre> <p>Anyway, let’s continue</p> <blockquote> $ machinectl shell @@ -45,17 +45,17 @@ Connected to the local host. Press ^] three times within 1s to exit session. <p>Okay even worse binding than Escape-Meta-Alt-Control-Shift(EMACS), fuck stty eof(^D), fuck POSIX, fuck quick and intuitive commands(shell for login, hell yeah), yes rude mode is activated.</p> <blockquote> It works! We can work as superuser. And isn’t end: we can also set shell and host: -<code>$ machinectl shell root@.host /bin/bash</code> +<code>$ <kbd>machinectl shell root@.host /bin/bash</kbd></code> </blockquote> <p>Wait… ssh is crap too? Why is there a dot before the host(maybe fuck localhost too…)?</p> <blockquote> Login as non-root user and set variable of shell environment: <code>#1000 - UID of user `paul` #SYSTEMD_TEST - test variable of user environment -$ machinectl shell --uid 1000 --setenv="SYSTEMD_TEST=777"</code> +$ <kbd>machinectl shell --uid 1000 --setenv="SYSTEMD_TEST=777"</kbd></code> </blockquote> <p>’Kay so starting another $SHELL and export VAR=VARIABLE too ?</p> -<blockquote><code>$ sudo systemd-run -p CPUQuota=50% -p PAMName=login -t /bin/bash -c '/usr/bin/stress -c 4'</code></blockquote> +<blockquote><code>$ <kbd>sudo systemd-run -p CPUQuota=50% -p PAMName=login -t /bin/bash -c '/usr/bin/stress -c 4'</kbd></code></blockquote> <p>Ah! So after saying cgroups is awesome… you goes with quota on the CPU… well maybe that’s called evolution… ? Why are you using login, you created machinectl for nothing? Why are you using -p options like a replacement to args… o_O<br /> Well this command is full of fuck(not the very great program which among other thing uses… sudo with the last command :D)</p> <p>I wonder when you will eat Emacs(meta-OS), build your own kernel because fuck UNIX so we can 🖖“live long an prosper” with (GNU/)Linux and BSD and you with SystemDOS.</p>