3 ms·
I did write an actual replacement. It's what TFA is about :)
by xena 4y ago
I did write an actual replacement. It's what TFA is about :)
- yjftsjthsd-h 4y ago> I did write an actual replacement. It's what TFA is about :) That is obviously not a replacement; either we take the serious approach of "sudo allows only authorized users to run things as root" and yours doesn't control access, or we take the nonserious approach of "sudo has so many bugs that it just gives people access" in which case we hardly need to bother rewriting it.
- recuter 4y agoYesn't.
- gnarbarian 4y agoto me the solution seems fairly obvious, and as is tradition already exists in unix as groups. sudo is for people who need root access. if you need anything less then create a custom group and assign the relevant specific rights there.
- yjftsjthsd-h 4y agoAnd then use su or whatever to control access to the actual root account? You'll always need some amount of access to it, although I suppose you're correct that in a truly well-functioning system it would be needed much less since everybody would be in enough groups to get access to the stuff they actually need.
- gnarbarian 4y agoexactly
- UncleEntity 4y agoI just like sudo as a sanity checker — if I need it for some random command I stop and figure out why it needs root privileges. The amount of times I’ve seen: wget random_script.sh && chmod +x random_script.sh sudo ./random_script.sh