4
So you want to re-implement sudo in Go. This is weird. I suggest to study the source code of sudo at first.
You need to understand carefully how Unix works at the system level. Did you read a book like Advanced Unix Programming and/or Advanced Linux Programming? Do you understand well the role o...