Date: Tue, 01 Jun 1999 17:44:20 +0100 From: Brian Somers <brian@Awfulhak.org> To: mi@aldan.algebra.com Cc: questions@freebsd.org, jpo@cs.nott.ac.uk, cgd@netbsd.org Subject: Re: unable to access tun-device Message-ID: <199906011644.RAA18419@keep.lan.Awfulhak.org> In-Reply-To: Your message of "Tue, 01 Jun 1999 12:21:04 EDT." <199906011621.MAA41101@misha.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@uk.FreeBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906011644.RAA18419>