From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 09:44:19 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 F276A37B404 for ; Mon, 9 Jun 2003 09:44:18 -0700 (PDT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9739A4402A for ; Mon, 9 Jun 2003 09:40:52 -0700 (PDT) (envelope-from tpark@drivespeed.com) Received: (qmail 44175 invoked from network); 9 Jun 2003 16:40:50 -0000 Received: from unknown (HELO titanium) (209.10.208.162) by relay.pair.com with SMTP; 9 Jun 2003 16:40:50 -0000 X-pair-Authenticated: 209.10.208.162 From: "Thomas Park" To: "'Matthew D. Fuller'" Date: Mon, 9 Jun 2003 09:41:01 -0700 Message-ID: <001001c32ea5$e95bb990$11640a0a@titanium> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030608231157.GI28798@over-yonder.net> 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 16:44:19 -0000 > -----Original Message----- > From: Matthew D. Fuller [mailto:fullermd@over-yonder.net] > > On Sat, Jun 07, 2003 at 10:21:17PM -0700 I heard the voice of > Thomas Park, and lo! it spake thus: > > 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: > Interesting. I have access to several FreeBSD 4.6 STABLE boxes, and /dev/tty on each of them looks thusly: crw-rw-rw- 1 root wheel 1, 0 Jun 8 15:26 /dev/tty crw-rw-rw- 1 root wheel 1, 0 May 31 23:06 /dev/tty etc. - all owned by root:wheel and all mode 0666. The only system that has user level ownership / permissions is the BSD 5.0 box. > > So, something else would be causing your ssh permissions. > We'd need more > details to try and track that down. > I'm pretty sure the ssh problem is with /dev/tty - I've scoured quite a few message boards and newsgroups looking for a solution to the SSH problem. The symptom:a user who doesn't currently own /dev/tty attempts to open an outbound SSH session and gets a permission denied error with an error message along the lines of "Host key verification failed." SCP likewise doesn't work. The fix suggested on the various newsgroups was to chmod 666 /dev/tty - pretty much in line with the permissions that I have on the 4.6 boxen. If you could suggest other culprit locations to try looking in, I would very much appreciate it. thanks! thomas