You are not logged in.
Hi,
I set up vpnc and with the root account I can connect successfully (command "vpnc"), after I load the tun module with
"modprobe tun".
It gives an error message, but everything works fine:
which: no ip in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin)
which: no ip in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin)
SIOCDELRT: No such device
VPNC started in background (pid: 7009)...
Now, I would like to allow regular users to connect with vpnc. If I try to connect as a regular user with the command "vpnc" I get this error:
vpnc: binding to 0.0.0.0:62465: Permission denied
What does the errors mean?
How can I set up permissions to allow regular users to connect with vpnc?
Thanks for your help.
Offline
An easy approach would be to use sudo. Put something like this in your /etc/sudoers:
user1 ALL=NOPASSWD:/usr/bin/vpnc
user2 ALL=NOPASSWD:/usr/bin/vpnc
etc..
You can also replace usernames with groups like %user. You can then put in your ~/.bashrc:
alias vpcn='sudo vpnc'
It'll end up being completely transparent to users.
I am a gated community.
Offline