From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 15:27:24 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EAB11065673 for ; Fri, 9 Sep 2011 15:27:24 +0000 (UTC) (envelope-from pkeusem@visi.com) Received: from g2host.com (mailfront3.g2host.com [208.42.184.241]) by mx1.freebsd.org (Postfix) with ESMTP id D8C818FC0C for ; Fri, 9 Sep 2011 15:27:23 +0000 (UTC) Received: from [173.30.51.17] (account pkeusem@visi.com HELO [172.16.175.217]) by mailfront3.g2host.com (CommuniGate Pro SMTP 5.3.11) with ESMTPSA id 27660839 for freebsd-questions@freebsd.org; Fri, 09 Sep 2011 10:27:22 -0500 Message-ID: <4E6A305A.1040105@visi.com> Date: Fri, 09 Sep 2011 10:27:22 -0500 From: Paul Keusemann User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.2.20) Gecko/20110810 Thunderbird/3.1.12 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4E6A0C1F.7090505@visi.com> In-Reply-To: <4E6A0C1F.7090505@visi.com> X-Is-From-Me: yes Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Can't log in as toor since package update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 15:27:24 -0000 On 09/09/11 07:52, Paul Keusemann wrote: > I use the toor login on my FreeBSD systems to log in with the korn > shell. Since August 22, When I try to log in as toor or even when I > try to "su - toor", I get logged in as root. For example: > > ushers# ssh -l toor woodstock > > Password: > > Last login: Fri Sep 9 06:30:23 2011 from 172.16.175.216 > > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > > The Regents of the University of California. All rights > reserved. > > FreeBSD 8.2-RELEASE-p1 (WOODSTOCK) #1: Mon Jul 11 09:05:07 CDT 2011 > > woodstock# who am i > > root 0 Sep 9 07:46 > > woodstock# su - toor > > woodstock# who am i > > root 0 Sep 9 07:47 > > > Unfortunately, I haven't tried to log in since a package update I did > around August 22, so I didn't notice this problem until now. Does > anybody have any idea what might be causing this? > OK, a couple of clarifications: - First, this is a shell problem, not a user id problem. - Second, su does give me the correct shell. In my earlier frustrated state, I did not check to make sure I was getting a csh shell from su. I have narrowed this down a little further and found a workaround. Normally, the way I start an admin shell on my FreeBSD machine via a menu item that runs a command something like this: ssh -l toor woodstock /usr/local/bin/xterm +ut -ls Up until August 22 or September 6, this would give me an xterm running a korn shell but now is giving me csh shell. The xterm package was updated September 6 but I don't see anything obvious in the change log. A quick look at the xterm man page shows me the login shell can be specified on the command line, so it looks like that is what I will have to do. I am still curious about what has changed in the last couple of weeks though. -- Paul Keusemann pkeusem@visi.com 4266 Joppa Court (952) 894-7805 Savage, MN 55378