From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 11:45:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA82637B401 for ; Mon, 9 Jun 2003 11:45:24 -0700 (PDT) Received: from regina.plastikos.com (216-107-106-250.wan.networktel.net [216.107.106.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7412043FBF for ; Mon, 9 Jun 2003 11:45:21 -0700 (PDT) (envelope-from fullermd@over-yonder.net) Received: from praetor.linc-it.com (praetor.linc-it.com [66.147.26.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by regina.plastikos.com (Postfix) with ESMTP id F095A6EEEF for ; Mon, 9 Jun 2003 14:45:19 -0400 (EDT) Received: from mortis.over-yonder.net (adsl-156-171-156.jan.bellsouth.net [66.156.171.156]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by praetor.linc-it.com (Postfix) with ESMTP id C2DF915488; Sun, 8 Jun 2003 18:12:00 -0500 (CDT) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 62F7820F12; Sun, 8 Jun 2003 18:11:58 -0500 (CDT) Date: Sun, 8 Jun 2003 18:11:57 -0500 From: "Matthew D. Fuller" To: Thomas Park Message-ID: <20030608231157.GI28798@over-yonder.net> References: <000901c32d7d$ca53b030$11640a0a@titanium> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c32d7d$ca53b030$11640a0a@titanium> User-Agent: Mutt/1.4.1i-fullermd.1 X-Editor: vi X-OS: FreeBSD cc: freebsd-questions@FreeBSD.ORG Subject: Re: /dev/tty keeps changing permissions..? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:45:25 -0000 On Sat, Jun 07, 2003 at 10:21:17PM -0700 I heard the voice of Thomas Park, and lo! it spake thus: > Hello, > > I've been having an interesting problem with my FreeBSD 5.0 install - > for whatever reason, the permissions and ownership on /dev/tty keep on > being automatically changed in such a way that it becomes impossible for > most users of the system to initiate outbound SSH sessions. If you're having a problem with ssh, /dev/tty permissions have nothing to do with it. It's something of a phantom device which always refers to YOUR tty. YOUR tty will naturally be owned by you, and either 620 or 600 (depending on mesg(1)). Vis: ----- [18:10:13] mortis:~ (ttyp3):{672}% whoami fullermd [18:10:17] mortis:~ (ttyp3):{673}% ls -al /dev/tty crw------- 1 fullermd tty 5, 3 Jun 8 18:10 /dev/tty [18:10:23] mortis:~ (ttyp3):{674}% ssh -t -lmatt localhost "ls -al /dev/tty" Password: crw--w---- 1 matt tty 5, 23 Jun 8 18:10 /dev/tty Connection to localhost closed. ----- So, something else would be causing your ssh permissions. We'd need more details to try and track that down. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet"