From owner-freebsd-questions@FreeBSD.ORG Fri May 2 17:45:03 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 9438D37B401 for ; Fri, 2 May 2003 17:45:01 -0700 (PDT) Received: from rooster.chubbo.net (rooster.chubbo.net [168.75.98.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7137943FBF for ; Fri, 2 May 2003 17:45:00 -0700 (PDT) (envelope-from freebsd-questions@chubbo.net) Received: from rooster.chubbo.net (localhost [127.0.0.1]) by rooster.chubbo.net (8.12.8/8.12.3) with ESMTP id h430ixsC074608 for ; Fri, 2 May 2003 17:45:00 -0700 (PDT) (envelope-from freebsd-questions@chubbo.net) Received: (from nobody@localhost) by rooster.chubbo.net (8.12.3/8.12.3/Submit) id h430ixrf074607 for freebsd-questions@freebsd.org; Fri, 2 May 2003 17:44:59 -0700 (PDT) X-Authentication-Warning: rooster.chubbo.net: nobody set sender to freebsd-questions@chubbo.net using -f Received: from w057.z208036024.sjc-ca.dsl.cnc.net (w057.z208036024.sjc-ca.dsl.cnc.net [208.36.24.57]) by mail2.chubbo.net (IMP) with HTTP for ; Fri, 2 May 2003 17:44:59 -0700 Message-ID: <1051922699.3eb3110bbf731@mail2.chubbo.net> Date: Fri, 2 May 2003 17:44:59 -0700 From: Joseph To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Subject: possible bug with sudo/ssh 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: Sat, 03 May 2003 00:45:03 -0000 hello there! i've been having some difficulty with something while using freebsd. i've just installed freebsd 5 and intalled sudo from package on the cd along with some other packages. when i login to the box directly or via ssh as user1, i can ssh out to other boxes without difficulty. if the remote host is not in my known_hosts, i'm prompted to add the key. when i login as user2, i get the same effects, i can ssh to remote hosts. in this situation, user2 is a common user and will not be allowed direct login. user1 and other users will su to user2 or sudo to user2. anytime i do 'su - user2' or 'sudo su - user2' and i try to ssh to a remote box (or localhost), i get "Host key verification failed.". i've also tried just 'su user2' and sudo su user2'. i've tried homedirs that are completely empty thinking it may be the environment, changing shells, changing uid's. i just dunno what's goin on. i can send output of ssh -vvv, but maybe i'm being really stupid this week. i have completely reinstalled freebsd 5 on a new drive and i get the same results. i've also tried this on other freebsd 5 machines with the same result. never needed to have this functionality on freebsd 5 but it does work on freebsd 4. thanks in advance for any pointers. joe