r/linuxmemes • Arch BTW • Sep 01 '26

LINUX MEME Dropping this here 🫳

Post image
3.4k Upvotes

369 comments sorted by

View all comments

Show parent comment

280

u/bearstormstout Arch BTW Sep 01 '26

https://0xcc.io/posts/omarchy-root-creds/

tl;dr anyone can use docker to execute any process as root without sudo.

196

u/[deleted] Sep 02 '26

[removed] — view removed comment

138

u/Ixxol Sep 02 '26

it is

91

u/C0rn3j Sep 02 '26

Holy shit that's like, docker 101.

It is also Arch 101, there's a huge red box warning you about it at the top of the Wiki page.

https://wiki.archlinux.org/title/Docker#Installation

Any Arch user hitting the wiki up would've known - AI doesn't care, though.

13

u/NimrodvanHall Sep 02 '26

Is this now a good place and time to explain why I prefer distros with SELinux properly configured ( like RHEL, Fedora or SUSE) over Arch and Podman or Kubernetes over Docker?

18

u/grazbouille New York Nixâš¾s Sep 02 '26

Security guy here

While podman is configured by default to be rootless you can very much do extremely heinous shit with its config and it will not warn you about it

Before using any complex tool on a production system go read up on the best practices and hardening

Don't blindly trust your tools

2

u/Jumpy-Dinner-5001 Sep 02 '26

As a security guy you should know that sudo or the wheel group have the same problem

11

u/grazbouille New York Nixâš¾s Sep 02 '26

Yes and you should still understand these tools and read up on them when you edit the configuration

What is your point

Obviously you need privileges sometimes we would just lock ourselves into a sandbox otherwise

4

u/C0rn3j Sep 02 '26

Not sure why you're entertaining this nonsense, sudo needs auth, docker does not.

3

u/grazbouille New York Nixâš¾s Sep 02 '26

By default yes you can very easily do heinous shit with passwordless sudo that's actually pretty relevant to the podman example except people are way more likely to fuck around in the podman config

→ More replies (5)
→ More replies (3)

2

u/codeasm Sep 02 '26

Depends on yiur threat model? Im a noob with cybersec, but someone who does it for a living said i had to pick the distro that fits me and be aware of whats possible and not, and be aware of its implemented security or lack there of, decide if its worth it also based on where and how i life, where i take it, and how large of a target i am.

So the laptop that never leaves my house and dont use for much but playing games. Low effort. The laptop that comes with me everywhere, more security. The vps on the internet, locked down, access keys, as few services as possible.

I do like podman alott, disliked docker for being allow everything from the start. I prefer optionally lockdown everything or there isnt even a thing running. As few packages in arch too, and few to no Aur if possible

→ More replies (2)

2

u/LazyLucretia Sep 02 '26

So is it actually a better idea to run Docker commands with sudo when necessary? I've always added my user to the docker group whenever I installed it.

4

u/C0rn3j Sep 02 '26

Yup.

Though it'd require permissions of your user in the first place to be exploitable - at which point the potential malware already has access to all your user files anyways.

→ More replies (1)

1

u/Jumpy-Dinner-5001 Sep 02 '26

You know that the exact same applies to wheel group and sudo?

→ More replies (6)

12

u/EggFucker1313 Sep 02 '26

It is ai slop of the trashiest quality, for the worst bottom-feeding techbros

4

u/Wired-For-Trouble Sep 02 '26

It literally is. Here’s the director of the project admitting to Prime that the ENTIRE project was just a series of Claude prompts.

https://youtu.be/MWvH7BRgwL8?is=Vz86LEAsf2sK8lvD

1

u/disperso Sep 03 '26

As someone has said before, this is the year of Linux in the AI psychosis.

2

u/Capable_Landscape686 Sep 03 '26

I dodged a tactical nuke here. I saw it try to install Claude Code and hopped immediately.

8

u/Grand-Ball6628 Arch BTW Sep 02 '26

Except the user isn't added to the docker group by default (anymore) as stated in the article. Just tried it on a fresh 4.0.2 Installation. In the omarchys menu, there's a feature called sudoless docker, which can add you to docker group but prints out a big explicit warning about the downsides of this.

2

u/Jumpy-Dinner-5001 Sep 02 '26

And it doesn’t matter because the same applies to sudo.

People are either stupid or have double standards

1

u/ResponsibilityBig343 Sep 02 '26

Doesn't docker create a new group and user for itself during installation?

1

u/UltraAd776 Sep 03 '26

How does one know if they have made this mistake?

1

u/bananamantheif Sep 03 '26

Before i cast shame. I tried using docker on a vm and docker decided to change my firewall without telling me. It doesn’t seem to respect my ruleset

→ More replies (13)