Originally Posted by trickykid
Like mentioned before, it's not just rpppoe, it most likely uses devices and other files that only root has access to. You're probably better off setting up sudo for the program to the users you want to have access to instead of changing permissions on files that might hinder functionality of the program, etc.
Well, I finally found my way to their web site and dug around
and if you want to run pppoe-start as a user, that is what you have to do, i.e., set up a /etc/sudoers file.
This really completely defeats the purpose of having their little RPPPPoEK .40 utility.
Regardless, I cut and pasted their example to the /etc/sudoers file, but I can't get it to work. It says it has to be edit with visudo, so I tried that. Still doesn't work. I read the MAN on visudo and don't see where it says how to save and exit once you have finished your editing.
When I run any of the commands from the file I get the same error, i.e., "syntax error. line 34. Parse error in etc/sudoers near line 34.
Here is my /etc/sudoers file:
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
%users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom,/sbin/mount /dvd,/sbin/umount /dvd
%users ALL=/sbin/mount /cdrom2,/sbhin/umount /cdrom2
%users localhost=/sbin/shutdown -h now
%users localhost=/sbin/shutdown -r now
# Allow members of the group "dialout" to connect to the internet:
%dialout ALL=(ALL) NOPASSWD: /usr/sbin/pppoe-start, /usr/sbin/pppoe-stop
%users ALL=(ALL) NOPASSWD: /usr/sbin/pppoe-start, /usr/sbin/pppoe-stop
Any help would be greatly appreciated.