From owner-freebsd-stable@FreeBSD.ORG Tue Aug 31 11:32:59 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E36416A4CE for ; Tue, 31 Aug 2004 11:32:59 +0000 (GMT) Received: from dns10.mail.yahoo.co.jp (dns10.mail.yahoo.co.jp [210.81.151.143]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F6AF43D4C for ; Tue, 31 Aug 2004 11:32:58 +0000 (GMT) (envelope-from ayakokiko@ybb.ne.jp) Received: from unknown (HELO gorgon.near.this) (219.11.234.11 with poptime) by dns10.mail.yahoo.co.jp with SMTP; 31 Aug 2004 11:32:57 -0000 X-Apparently-From: Received: from hydra.near.this (hydra.near.this [10.0.3.20]) by gorgon.near.this (Postfix) with ESMTP id 487A57F24 for ; Tue, 31 Aug 2004 20:32:50 +0900 (JST) Received: by hydra.near.this (Postfix, from userid 100) id C47AE982E; Tue, 31 Aug 2004 20:32:49 +0900 (JST) Date: Tue, 31 Aug 2004 20:32:49 +0900 From: horio shoichi To: freebsd-stable@freebsd.org In-Reply-To: <20040830.135241.c2e05e55cb8a0ff8.10.0.3.20@bugsgrief.net> References: <960.1093831008@gilmore.nas.nasa.gov> <20040830.135241.c2e05e55cb8a0ff8.10.0.3.20@bugsgrief.net> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040831.113249.748bb9b4e7bd9c4f.10.0.3.20@bugsgrief.net> Subject: Re: mesg Broke on Stable between 8/21 and 8/28 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 11:32:59 -0000 On Mon, 30 Aug 2004 22:52:40 +0900 horio shoichi wrote: > On Sun, 29 Aug 2004 18:56:48 -0700 > Dave Tweten wrote: > > When I replaced a STABLE build from 8/21 with one from 8/29, "mesg" > > stopped working on xterms. > > > > I treat each xterm as a login shell, and include "mesg n" in .login. > > The problem seems to be that ownership of /dev/ttyp? is not being > > transferred to the user anymore. I remember that "options UCONSOLE" > > was involved in the transfer of ownership. That configuration element > > was in both the 8/21 and 8/28 kernels; nothing was changed in the > > config file. > > > > I checked the mailing list archives, and there does seem to be some > > recent action in the tty driver area. Unfortunatly, we were > > compromised recently, and I'm only now getting my connections to e-mail > > lists (including this one) re-established, so my knowledge of recent > > list traffic is limited to what I can find on the web site. > > > > Does anyone have any idea what has caused the change? > > -- > > M/S 258-5 |1024-bit PGP fingerprint:|tweten@nas.nasa.gov > > NASA Ames Research Center| 41 B0 89 0A 8F 94 6C 59| (650) 604-4416 > > Moffett Field, CA 94035 | 7C 80 10 20 25 C7 2F E6|FAX: (650) 604-4377 > > Not an official NASA position; you can't even be certain who sent this! > > > > > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > > > Similar here. On 4.9-STABLE (I'm awaiting ipfilter straightened out). > > The symptoms are: > > o 'mesg n' in .cshrc doesn't cause problem when remotely logged in, > > o starting up with xterm or running script are 'permission denied', > > o vi command 'set nomesg' is 'Operation not permitted'. > > > The stem of those problems of mine is recent dropping of setuid bit > from /usr/X11R6/bin/xterm. > > I tried setting setuid bit on /usr/bin/mesg. It solved the first problem > but not the second. So, due to the fear of further unforeseen troubles > (although 'set nomesg' itself doesn't look make much sense), > I have set setuid back on xterm. Now, it is (they are): > > % ls -aFl /usr/X11R6/bin/xterm* > lrwxrwxrwx 1 root wheel 27 Aug 30 11:26 /usr/X11R6/bin/xterm@ -> /usr/X11R6/bin/xterm-static > -rwsr-xr-x 1 root wheel 260792 Aug 29 06:23 /usr/X11R6/bin/xterm-static* > % > > > horio shoichi > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > Sorry, but I was very wrong. I fully restarted X and found setuid on xterm doesn't do any good on script. It keeps pty modes crw-rw-rw- with owner root:wheel, and still prints 'permission denied'. Script might have been working this way, but I have lost my memory. horio shoichi