this post was submitted on 29 Jun 2023
132 points (96.5% liked)
Linux
48165 readers
710 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just try to implement user session management on a non systemd distro...
Systemd is way better than others init system. I'm using Alpine Linux on my phone and I really wait for a Fedora/Arch like PMOS project (it's on the way)
[pi@raspberry]# sudo su
Just saying, not everyone needs session management...
Why spawn additional process when you can get into shell directly with
sudo -s
?Well, sudo itself is a purely optional component—you can run a system quite happily with just su .
Because I already had my fingers closer to "su" than to "-s"... but more seriously, because I tend to use
sudo -E su
on a remote terminal with a PS1 set to colorize the prompt based on whether I'm running root and the host if it's remote, butsudo -E -s
doesn't run the root's.bashrc
that runs the updated colorization while at the same time exports too much of the user's environment into the root shell.What do you do with all the process you save with that trick ?