Am 16.08.23 um 10:02 schrieb Jan Engelhardt:
On Wednesday 2023-08-16 01:18, Aaron Puchert wrote:
Am 15.08.23 um 11:36 schrieb Jan Engelhardt:
sbin: "system programs and administration utilities" That was the idea in the early UNIX days, but it's becoming unusual to log in as root, and administrative work is mostly done from regular accounts with the occasional use of sudo. sudo is not affected by your PATH. `sudo getcap` still works. Of course, but getcap doesn't need sudo. I want to run it without typing in some password. Just use `sudo bash` and move on. Works well of course (or `sudo su`), but removes the audit trail. I'm still using root shells occasionally, but mostly for working in non-world-readable directories. Alternatively, would you suggest an "administrator" add /usr/sbin to their PATH for the tools that don't actually need privileges? But many of us are effectively administrators these days. Yes, change your PATH if you think that is useful for your case. Or do the experiment on yourself and just type out /usr/sbin/ in front and then count how often you needed it.
Surely not every day. But I've found myself checking capabilities often enough to warrant a shortcut. There are two other commands from /sbin that I've run occasionally as non-root since setting up compressed swap: `swapon -s` and `zramctl`. But that was mostly out of curiosity.
With UsrMerge, you can now just use /sbin (less typing). Good point, that makes it a bit shorter at least.