From owner-freebsd-questions Fri Oct 3 11:32:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA03843 for questions-outgoing; Fri, 3 Oct 1997 11:32:28 -0700 (PDT) Received: from pop.cc.nih.gov (pop.cc.nih.gov [137.187.120.140]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA03761 for ; Fri, 3 Oct 1997 11:31:47 -0700 (PDT) Received: (from aling@localhost) by pop.cc.nih.gov (8.8.4/8.8.3) id OAA15103; Fri, 3 Oct 1997 14:31:37 -0400 (EDT) Message-Id: <199710031831.OAA15103@pop.cc.nih.gov> From: "A Ling" To: "FreeBSD-questions" Date: Fri, 03 Oct 97 14:31:35 -0400 Reply-To: "A Ling" Priority: Normal X-Mailer: Alexander Ling's Registered PMMail 1.53 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Only root can use ppp or tun0? Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 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 mtu 1500 tun0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 lo0: flags=8049 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