To restrict sudo to only a few commands (I hate sudo), I have always been
patching this file up to run as root instead of as the user. Here, everything
is hard coded to my user (brad) and my home directory (/home/brad), but it runs
startx as my user after setting everything up as the root user.
Just an example of how this might work. I've been using this style for years.
|