3 ms·
The shell wouldn't need to be setuid if it just performed a syntax transformation and then called the existing sudo binary.
by TheCoelacanth 10y ago
The shell wouldn't need to be setuid if it just performed a syntax transformation and then called the existing sudo binary.
- JoshTriplett 10y agoExactly. 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.