You are not logged in.

#1 2007-03-24 23:44:01

rumpel
Member
Registered: 2007-03-24
Posts: 4

How to connect with vpnc as a regular user?

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

#2 2007-03-25 01:51:51

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: How to connect with vpnc as a regular user?

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

Board footer

Powered by FluxBB