Xref: utzoo comp.unix.wizards:25409 alt.security:2449 Path: utzoo!utgpu!cs.utexas.edu!swrinde!mips!apple!fernwood!uupsi!sunic!news.funet.fi!funic!santra!news From: jkp@cs.HUT.FI (Jyrki Kuoppala) Newsgroups: comp.unix.wizards,alt.security Subject: Re: BSD tty security, part 4: What You Can Look Forward To Message-ID: <1991May5.125240.6222@santra.uucp> Date: 5 May 91 12:52:40 GMT References: <13266@goofy.Apple.COM> <7363:May202:45:0591@kramden.acf.nyu.edu> <1991May03.010840.5268@decuac.dec.com> <438@pharaoh.UUCP> Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: jkp@cs.HUT.FI (Jyrki Kuoppala) Followup-To: comp.unix.wizards Organization: Helsinki University of Technology, Finland Lines: 16 In-Reply-To: ian@pharaoh.UUCP (Ian Crocker) In article <438@pharaoh.UUCP>, ian@pharaoh (Ian Crocker) writes: [TIOCNOTTY] >However when you try and do the TIOCSTI it fails on >all the systems I have tried it on because you are not the owner of the >device. I know that the manual says it should work as you are trying >to do the ioctl on your control terminal, but this is not the case on my >systems - you have to own the device or have an euid of 0. Hmm, I haven't checked lately and am not sure if I remember it correctly but are you sure after attaching to another tty you did open ("/dev/tty", O_RDWR) and then the TIOCSTI on that file descriptor ? That worked on a pretty generic bsd 4.3 system at least a couple of years ago. //Jyrki