From owner-freebsd-questions Tue Jun 1 9:45:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.128.198]) by hub.freebsd.org (Postfix) with ESMTP id 032C7154EF for ; Tue, 1 Jun 1999 09:45:48 -0700 (PDT) (envelope-from brian@keep.lan.Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id RAA31466; Tue, 1 Jun 1999 17:45:00 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id RAA18419; Tue, 1 Jun 1999 17:44:21 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199906011644.RAA18419@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: mi@aldan.algebra.com Cc: questions@freebsd.org, jpo@cs.nott.ac.uk, cgd@netbsd.org Subject: Re: unable to access tun-device In-reply-to: Your message of "Tue, 01 Jun 1999 12:21:04 EDT." <199906011621.MAA41101@misha.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 01 Jun 1999 17:44:20 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there something extra special about this files? This is on FreeBSD-3.0 > > mi@chubby:~ (84) ls -l /dev/tun3 > crw-rw---- 1 mi dialer 52, 3 Jun 1 11:00 /dev/tun3 > mi@chubby:~ (85) groups > mi dialer operator wheel > mi@chubby:~ (86) cat /dev/tun3 > cat: /dev/tun3: Operation not permitted > mi@chubby:~ (87) whoami > mi > > How can I let non-root users use the interface without sudo, etc? Thanks! You can't ``cat'' /dev/tun* as the driver refuses reads/writes from non-root users. ppp(8) is careful to change it's userid when reading/ writing to the device. You must be in group network to execute ppp and you must have an appropriate ``allow user'' line - see the man page. > -mi -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message