8 ms·
Systemd Absorbs “su” Command Functionality
- thescribe 11y agoThe Freedesktop foundation is starting to scare me. I feel like all of their projects, in aggregate, are heading in a direction I do not know if I like.
- digi_owl 11y agoLook into its history, it got fired up by Havoc Pennington out of RH. Sadly it seemed to work at first, but now it is basically a tool for Gnome/Fedora to bludgeon the rest into submission by sheer weight of code. Frankly it seems that Linux has grown its own "internal" MS. A massive, overfed gorilla in the form of Red Hat. And it is now swinging its weight around, thinking it has "won" some kind of unix war. Sadly it may well be right, as there is few that can match it in the amount of man hours it can throw at a project. Damn it, https://github.com/subuser-security/subuser/issues/216 https://github.com/subuser-security/subuser/issues/216 is a "blog" entry related to Docker that holds a mention of such weight throwing. "A number of developers from RedHat were once very involved in the project. However, these developers had a very arrogant attitude towards Docker: They wanted docker changed so that it would follow their design ideas for RHEL and systemd. They often made pull requests with poorly written and undocumented code and then they became very agressive when those pull requests were not accepted, saying "we need this change we will ship a patched version of Docker and cause you problems on RHEL if you don't make this change in master." They were arogant and agressive, when at the same time, they had the choice of working with the Docker developers and writting quality code that could actually be merged. Another thing they often said was along the lines of "systemd is THE ONE AND ONLY INIT SYSTEM so why do you care about writing code that might be portable?" Or "even though the universal method works with systemd now. A redesign has already been planned in systemd, so do it the new systemd way and don't be portable."(This is in response to the fact that Docker writes to cgroups, and systemd would like to be the "sole writter to cgroups" some time in the future.)"
- thescribe 11y agoThank you for the link. This makes Freedesktop seem almost sinister.
- digi_owl 11y agoI do believe it was started with the best of intentions (but the road to hell is paved with those and all that). Its just that one party involved in all this has better lines of communications, more funding, and apparently a fervent belief that their solution is always the right one. End result is something of a unconscious steamrolling of everyone else.
- Jedd 11y agoThe actual article is here (it's linked in the /. page) https://tlhp.cf/lennart-poettering-su/ https://tlhp.cf/lennart-poettering-su/ As usual, it's a much more reasoned, moderate, thoughtful, and cautious response to a deeper issue than just 'trying to take over the whole operating system'. IIUC, there's no suggestion to deprecate su, but to provide a more predictable rights elevation (which includes flipping to a different or less privileged uid/gid) using an additional feature that's implemented in one of the systemd components.
- peterwwillis 11y agoThe apologist's response is sometimes difficult to grok. Here, let me translate: "Really guys, it's obvious he's not trying to take over the operating system. He's only saying it's full of flawed obsolete technology which in some technical or user-specific way doesn't make sense, so he's going to replace it all piece by piece until it's eventually impossible to recognize the operating system as 'Linux', or even UNIX-like. It's just a gradual conversion into a completely different OS, not a takeover at all. What's the big deal?"
- Thetawaves 11y agoIt is ok that you do not understand the issues being dealt with here, you just have to say so.
- simoncion 11y agoYour comment is content-less. Based on it, I could say exactly the same to you. The discussion would benefit if you would take the time to post a new comment with a meaty discussion of the technical merits of rolling this into systemd vs. doing the work to write a PAM module that behaves in the required manner. Bonus points if you can point out how this su replacement comports with the systemd proponents' continual refrain that "All parts of systemd that live outside of PID 1 are optional; you don't have to use them!". :) I look forward to your post! Heated, substance-less discussions are tiresome.
- iso8859-1 11y agoWhy link to Slashdot? @dang, please fix this?
- dmm 11y agoSystemd is still hungry... https://imgur.com/gallery/D1XK8nk https://imgur.com/gallery/D1XK8nk
- Spivak 11y ago"systemd-machined" is systemd in name only. It's not like the init system has built in su functionality, this is just the project's container/vm manager getting some new functionality. This isn't a full replacement for su and it doesn't even come close to the functionality of sudo.
- cbd1984 11y agoThis comment is content-free.
- simoncion 11y agoNah. Systemd started out as "just an init system". It has grown and grown since those days, ages ago. One day, systemd will eat udev: Kay Sievers on Tue, 3 Apr 2012: "After udev is merged into the systemd tree you can still build it for usage outside of systemd systems, and we will support these builds officially. In fact, we will be supporting this for a long time since it is a necessity to make initrds (which lack systemd) work properly." [0] (Emphasis mine.) [0] https://lwn.net/Articles/490413/ https://lwn.net/Articles/490413/
- digi_owl 11y agoGentoo started eudev in part because extracting udev from the larger systemd project became too cumbersome. Each time there was a update the process changed enough to break attempts at automation, apparently. the Linux From Scratch team adopted eudev for their non-systemd edition ("classic") for a similar reason.
- simoncion 11y agoYeah, I know. Due to inertia, I'm still using sys-fs/udev and will probably continue to do so until Sievers makes good on his implied threat.
- PhantomGremlin 11y agoThank the deities for Theo de Raadt. Some consider him to be an asshole, but he's my kind of asshole! I love OpenBSD. I know it's too limited to be for everyone, but it suits my purposes quite well. And I can confidently assert that, for as long as Theo is the not-so-benevolent dictator for life, that OpenBSD will never have anything as messy and complex as systemd. What I don't understand is how the vast majority of the Linux community is not just allowing, but encouraging, systemd to continue to grow without bound.
- simoncion 11y ago> What I don't understand is how the vast majority of the Linux community is not just allowing, but encouraging, systemd to continue to grow without bound. The vast majority of the Linux community has no influence on the development of systemd and its cloud of closely related software. What's more, Poettering & co. are notoriously opinionated and bullheaded. This makes attempts to steer "their" projects in new directions all but impossible. If Debian had moved from SysV init to -say- OpenRC, systemd would be a strictly RedHat curiosity. [0] If my experience with Kubuntu 15.04 is typical [1], we might see some pushback from -at a minimum- Canonical. The Linux kernel hackers asked some serious technical questions about kdbus (another Poettering Cabal project) back during the 4.1 merge window. The answers that they got back were less than satisfying. I haven't been following the kdbus project closely since then, but AIUI, the objections raised have yet to be addressed. [0] It's a pity that that conversation was not on my radar when it first started; I would have loved to get up to speed on OpenRC and attempt to address the Debian folks' concerns with it! [1] Systemd boot times are 2->10x slower than boot times with Upstart (and the systemd boot time reporting software provides incorrect numbers), and systemd system shutdowns occasionally hang forever, requiring the use of SysRq key combos to kill the machine.
- peterwwillis 11y agoYou can't argue with Poettering. He writes technically superior solutions for extremely edge-case problems and then markets them fiercely, dismissing people as stupid if they prefer the caveman's way [e.g. UNIX]. To disagree is to say you prefer a kludgy unintelligent mess. Which, we do. But you don't win points in a feature-comparison pissing contest for that. Theo is basically who Poettering would be if he forked Linux (and was less whiny). He probably hasn't because it would be a ton of work and few people would use it, and he couldn't benefit from the base of support of the Linux ecosystem. There's a lot of crap out there that's Linux-only now, or officially only supports certain distros. It makes much more sense to convince someone to shoehorn your code into their distro than to make your own. Few desktop users ever notice it, most server admins aren't really that knowledgeable, and most devs just write userland code. I think most people don't think about how much more of a headache things have become. After all, hasn't Linux/UNIX always been a headache, relatively speaking?
- icedchai 11y ago"machinectl" ? if the commands were actually sensibly named it would be less bothersome.
- Spivak 11y agoYou can alias it to whatever you want, but the name is reasonable in context. machinectl is the interface to systemd-machined which is used to manage the host system, containers, and virtual machines in a consistent way. I've got a bunch of RHEL systems at work and I've just aliased all the -ctl commands. If you want to open a shell on a container you would run "machinectl shell my-container-1"
- aexaey 11y agoLennart's basic premise for doing this is quite wrong. Not completely groundless, but still substantially wrong. He writes: > [su] will given you kind of a shell, and it’s fine to use it for that, but it’s not a full login, and shouldn’t be mistaken for one. Well, yes, by default. But... that's what "su -" is for. Gives you new root shell as a treat, complete with env clean-up and running root's preferred shell interpreter. Granted, having to type two extra characters each time is mildly annoying, but hardly a good reason to produce grand claims like "su is really a broken concept".