Re:Dd is not a disk writing tool (2015)
by TheCoelacanth on Sunday January 08, 2017 @03:42PM
(#13351875)
The shell wouldn't need to be setuid if it just performed a syntax transformation and then called the existing sudo binary.
Re:Dd is not a disk writing tool (2015)
by JoshTriplett on Sunday January 08, 2017 @06:24PM
(#13352741)
Exactly. The shell would just treat "sudo" as a builtin prefix similar to "time", but would then run the real "sudo" with an appropriate shell invocation and proper quoting.
In short, you could do it, but it'd be ripped out of every server that's been hardened, and for users that don't want to care - they're just running 'sudo su' anyhow.
Speaking only for myself, the thought of my shell having a magical escalation process would scare the bejeezus out of me - and I'm supposed to have root on our boxes!