Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Oct 97 14:31:35 -0400
From:      "A Ling" <al52x@nih.gov>
To:        "FreeBSD-questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Only root can use ppp or tun0?
Message-ID:  <199710031831.OAA15103@pop.cc.nih.gov>

next in thread | raw e-mail | index | archive | help
I found the interchange below in the archives, which matches the 
symptoms my 2.2.2R machine is showing.  Unfortunately, setuid on ppp 
doesnt stop the error message.  Other information from my system 
follows this excerpt:
=========== from the Free BSD -questions archive ===========
Date:      Mon, 17 Feb 1997 14:42:11 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
Sender:    owner-questions@freebsd.org
Subject:   Re: !root access to tun0/user-ppp

On Mon, 17 Feb 1997, Daniel Kligerman wrote:

> I am having difficulty allowing any non-root user to have access to
> /dev/tun0 or user-ppp.  No matter what permissions I set the ppp conf
> files or /dev/tun0 to, I get:
> 
> No tunnel device is available.
> open_tun: No such file or directory
> 
> when ppp is run by anyone but root.

Make sure ppp is suid root.  This was probably disabled when a security
hole was discovered in ppp.
============= End of excerpt ================
aling:~>ifconfig -a
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet 127.0.0.1 netmask 0xff000000 

aling:~>groups
family wheel operator dialer wwwgrp

aling:~>ll /dev/tun*
crw-rw----  1 uucp  dialer   52,   0 Sep 29 01:30 /dev/tun0

aling:~>ppp
User Process PPP. Written by Toshiharu OHNO.
No tunnel device is available (Operation not permitted).
open_tun: No such file or directory

aling:~>which ppp
/usr/sbin/ppp
aling:~>ll /usr/sbin/ppp
-rwxr-sr-x  1 root  wheel  130811 Aug  3 16:24 /usr/sbin/ppp

   Yet ppp works perfectly when run by root!  The other issue I can think 
of is that I did install ppp-970803-2_2-STABLE_bin_tar.gz from 
http://www.freebsd.org/~brian/
Should I back out to the original 2.2.2R ppp code, or is there another 
suggestion?  I would have thought this was a permissions issue -- my 
problem is that I don't know which other file/directory permissions could 
be the cause.  Thanks in advance for any advice you may suggest.
Alex Ling     AL52x@nih.gov   (301) 496-7700 x235




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710031831.OAA15103>