visudo
Add the following
Cmnd_Alias PPTP = /usr/sbin/pptp-command
jamesm ALL=(ALL) ALL, NOPASSWD: PPTP
# This means the user jamesm from ALL hosts can su to (ALL) users and run ALL commands WITH a password but can run /usr/sbin/pptp-command WITHOUT a password
# If you want a group of users to be able to do the same thing define a User_Alias
User_Alias PPTPCONNECT = jamesm, user2, user3, user4
# And use it as the user field
PPTPCONNECT ALL=(ALL) ALL, NOPASSWD: PPTP
# or for the unix group of `wheel'
%wheel ALL=(ALL) ALL, NOPASSWD: PPTP
Create a wrapper script to run it from the shell prompt by a command similar to these
pptpconnect start
or
pptpconnect stop