Re:Run0 – systemd based alternative to sudo announced
by mbivert on Tuesday April 30, 2024 @04:54PM
(#40216221)
I've never understood the need for sudo(1) on single-user, physical machines: I keep a root shell (su(1)) around for admin tasks, and it's always been sufficient.
[ Parent
| on HN ]
Re:Run0 – systemd based alternative to sudo announced
by chgs on Tuesday April 30, 2024 @06:29PM
(#40217199)
Everything I run with sudo is logged so I know how I messed up.
Nothing worse than ansible with its “sudo /tmp/whatever.sh” which hides what it’s doing.
Re:Run0 – systemd based alternative to sudo announced
by mbivert on Wednesday May 01, 2024 @02:49AM
(#40220288)
> Everything I run with sudo is logged so I know how I messed up.
FWIW, shells have a (configurable) history file. I'm not sure how it compares to sudo's logging though. I also personally perform little day to day admin tasks (I don't have as much time nor interest to toy around as I used to, and my current setup has been sufficient for about a decade).
> Nothing worse than ansible with its “sudo /tmp/whatever.sh” which hides what it’s doing.
That's a nightmare indeed; for sensitive and complex-enough tasks requiring a script, those scripts should at least be equipped with something as crude as a ``log() { printf ... | tail $logfile`` }.
Re:Run0 – systemd based alternative to sudo announced
by airocker on Tuesday April 30, 2024 @05:15PM
(#40216440)
Its just maybe easier way to not have to go to the root shell.
Re:Run0 – systemd based alternative to sudo announced
by mbivert on Tuesday April 30, 2024 @05:33PM
(#40216629)
Makes sense (I keep one warm in a tmux, two shortcuts away at most, so it never occurred to me).
Re:Run0 – systemd based alternative to sudo announced
by lupusreal on Tuesday April 30, 2024 @06:20PM
(#40217134)
One password is easier than two and it feels weird to use the same password for both accounts. About half of my sudo invocations are 'sudo su' lmao.
Re:Run0 – systemd based alternative to sudo announced
by bmicraft on Tuesday April 30, 2024 @07:28PM
(#40217721)
You could probably save a process with `sudo -i`
Re:Run0 – systemd based alternative to sudo announced
by lupusreal on Wednesday May 01, 2024 @09:41AM
(#40223090)
Slightly less convienent to type.
Re:Run0 – systemd based alternative to sudo announced
by MadnessASAP on Tuesday April 30, 2024 @10:14PM
(#40218811)
You're entering your own accounts password, not root, when you use sudo. It's a security measure to prove our shell hasn't been hijacked and to make you pause and acknowledge your running a command that may affect the entire system.
You can also disable it in the sudoers file.
Re:Run0 – systemd based alternative to sudo announced
by lanstin on Tuesday April 30, 2024 @11:55PM
(#40219340)
of mine are sudo bash.