Earlier quoted context omitted.
Yeah but elevated permissions may be needed from time to time anyway. Either on the client, the baremetal server or the container. Running everything as root is even for containers not recommended. Considering how popular these have become, it's a bit of an irony that systemd isn't available on the container without considerable detours.
One user with sudo for sysadmins on baremetal and a sudo access without CAP_SYSADMIN on container should be good.
Run0, a systemd based alternative to sudo, announced
831–840 of 902 posts
Re: Run0, a systemd based alternative to sudo, announced
#832I am really not looking forward to systemd taking over another part of the system with how unpolished and flaky their replacements usually are. Anyway, I have been using doas instead of sudo for a while on servers, it’s rock solid if you don’t need some of the more advanced features of sudo.
I honestly have no clue what you mean. You can take unit files, journald, timers, and all the other neat features from my cold, dead hands. I’m not going back to writing brittle shell scripts; systemd has made my life SO much easier.
Re: Run0, a systemd based alternative to sudo, announced
#833Earlier quoted context omitted.
You can use almost any GNU project without depending on all the other GNU projects.
This is different from Systemd how? You can't use any GNU project without depending on GNU libc (except glibc itself, trivially).
Of course you can. Unless they're depending on non-standard parts of libc, you can use any GNU project with other libc implementations (musl, dietlibc, ulibc etc).
Re: Run0, a systemd based alternative to sudo, announced
#834Earlier quoted context omitted.
I think these problems are basically negligible because the amount of people trying to "configure sudo to be safe to use for unprivileged users, by only allowing specific things to run with it" is negligible. Virtually all users of sudo are using it on their own computer which they are the sole user and ultimately the administrator of. Even in corporate contexts where the company owns the machine instead of the user,…
'systemd-run except with privilege escalation' is a thing I wished for for a long time, needed in production. Glad they finally made it, too bad it took them so long. (To be honest, it feels like it should have just been part of systemd-run in the first place.)
What is being announced is merely a thin layer of cmdline syntactic sugar over an existing feature, to make it closer to sudo in usage.
So I'm not sure what exactly you were missing?
Re: Run0, a systemd based alternative to sudo, announced
#835Remember, malware can just alias your sudo command to one that logs your password and piggyback on your next use. If you ever use sudo, then all bets are off on sandboxing malware. Best to not have a ladder to root at all.
Sudo is a crutch for people that have not learned the last 20 years of privilege isolation tech.
Re: Run0, a systemd based alternative to sudo, announced
#836This is playing on the difference between hoping that sudo does the right thing juggling setuid and capabilities, and having a strict IPC boundary between privilege levels. It sounds like a great use of systemd, for those who want to use it.
There's like 3 components involved in making setuid safe (the kernel, the dynamic loader, and your exec), and at least one of them wasn't doing its job correctly (the dynamic loader). IPC by definition involves a superset of these components. There's no reason to think that if you can't make a simple setuid binary safe, you can make IPC safe. IPC is an order of magnitude more involved. Specially because in order to g…
Incorrect, because nowhere in the IPC dance are these components exposed to the same untrusted environment as they are with sudo.
Re: Run0, a systemd based alternative to sudo, announced
#837Earlier quoted context omitted.
I honestly have no clue what you mean. You can take unit files, journald, timers, and all the other neat features from my cold, dead hands. I’m not going back to writing brittle shell scripts; systemd has made my life SO much easier.
Well, that's wonderful for you, glad it works for someone, but that has not been my experience.
(Same goes for "unpolished and flaky".)
Re: Run0, a systemd based alternative to sudo, announced
#838Earlier quoted context omitted.
> I could `tail -f *.logs`. I remember how I didn't need to remember about `--no-pager` and `--follow`. journalctl supports -f, which by your own account you were already using for tail, so I'm not clear what's worse there. > I remember how I didn't have to google how to find logs between 10 days ago and 4 days ago, because the logs would be in a .tar created by logrotate with a date in the filename. My memory of thi…
This and many other discussions misses the point that most people that don't like systemd have with it. It can largely do everything it replaces, but differently, in some cases with improvements. Every year it increases its scope of 'problems' its solved. But the issue is it hasn't _ACTUALLY_ solved a problem for me in about a decade, its only introduced problems. Its replaced things that worked perfectly for me and…
It does and we don't. The only "we" who are "hating it so much" is a tiny vocal minority.
Re: Run0, a systemd based alternative to sudo, announced
#839Earlier quoted context omitted.
> remember when you had to write bash scripts to start, stop, restart services This was a really big pain, yes, but I also remember how I could `tail -f *.logs`. I remember how I didn't need to remember about `--no-pager` and `--follow`. I knew where the files were, what they were called. I remember how I didn't have to google how to find logs between 10 days ago and 4 days ago, because the logs would be in a .tar cr…
systemd-nspawn is actually pretty great, and is mostly just a tool that exposes functionality that systemd already needs for other reasons. IIRC it was originally developed to aid in testing systemd itself, and was initially shipped as an unsupported extra in case other people found it useful. systemd-resolved is the only way I've ever been able to get dockerd to play nice with Tailscale DNS; it's also the best way t…
I don't think there is one. systemd-networkd is explicitly not for dynamic environments like personal laptops or workstations; it has a scope and NetworkManager is largely outside it.
Re: Run0, a systemd based alternative to sudo, announced
#840systemd has been a net positive for the linux ecosystem. remember when you had to write bash scripts to start, stop, restart services and handle any other signals you want to send it? nowadays it's a unit file (basically just an ini file) away with relatively straightforward API. and you can actually declare startup dependencies and other useful relationships past just "prepend a number signifying when it should run…
> you can actually declare startup dependencies and other useful relationships In theory, yes. In practice, I had a lot of trouble ordering things correctly in non-trivial cases. > it's quite annoying that the armchair linux experts complain about how "lol systemd is so stupid for reinventing the wheel, give me my shell scripts back" I can only speak for myself, but I don't want the abysmal sysvinit scripts back. I j…
[citation needed]