[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)


  • Subject: Re: [Openvpn-users] Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
  • From: Tarjei Huse <tarjei@xxxxx>
  • Date: Thu, 05 Aug 2004 11:07:52 +0200

On Thu, 2004-08-05 at 08:12, Jon Bendtsen wrote:
> Den 4. aug 2004, kl. 19:24, skrev tarjei@xxxxx:
> 
> > Hi, I'm running SuSE linux with Openvpn Beta10 (kernel 2.4.20, SuSE 
> > 8.2).
> >
> > I just thought I'd note this. I tried to run the client (not the 
> > server)
> > with the user and group parameters set. This did not work out. Instead 
> > I
> > got:
> >
> > Aug  4 18:23:47 openvpn[4636]: Note: Cannot open TUN/TAP dev 
> > /dev/net/tun:
> > Permission denied (errno=13)
> > Aug  4 18:23:47 openvpn[4636]: Note: Attempting fallback to kernel 2.2
> > TUN/TAP interface
> > Aug  4 18:23:47 openvpn[4636]: Cannot open TUN/TAP dev /dev/tap0: 
> > Operation
> > not permitted (errno=1)
> >
> > Commenting out the user and group params solved this issue. I'm not 
> > sure was
> > wrong. I tried to create a simple openvpn user and group and run 
> > openvpn as
> > that uid/gid, but that didn't help.
> 
> well, what are the permissions of
> 	/dev
> 	/dev/net
> 	/dev/net/tun
/dev/net/tun is root.root 0600 on both machines, running same os, same
openvpn, same kernel.

Same goes for /dev/net.

I tried to su to the opevnpnuser and cd into /dev/net, no problem.

So, it seems the only difference is that on one of the machines I run in
mode server, and the other I run p2p-mode.

If you have any suggestions you want tested, feel free to holler out.

Tarjei

> 
> if the user and group you made can not see it, it doesnt work.
> 
> 
> JonB


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users