I have scoured the internet (and the Debian man files) to figure out how to allow a user access to only one program as root, using sudo.
I use root for my administrative stuff, but there's one program my normal user, ryan, needs to run. That program is service. I need to be able to run that program, preferably without entering my password every time, so I can start or stop gdm3 whenever I want (I don't use GNOME much).
What I need to know is how to tell visudo that. This line doesn't pass the parse check:
ryan ALL=(ALL) service
What do I need to type to get it to work? Thanks.