From owner-freebsd-stable@FreeBSD.ORG Sun Jan 16 10:20:52 2005 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 097B616A4CE for ; Sun, 16 Jan 2005 10:20:52 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 30DBB43D53 for ; Sun, 16 Jan 2005 10:20:51 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 16 Jan 2005 10:20:49 +0000 (GMT) Date: Sun, 16 Jan 2005 10:20:49 +0000 From: David Malone To: Robert William Vesterman Message-ID: <20050116102049.GA59394@walton.maths.tcd.ie> References: <41E9B02B.5070602@fer.hr> <41E9E37B.7020002@vesterman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41E9E37B.7020002@vesterman.com> User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie cc: freebsd-stable@freebsd.org Subject: Re: cannot su? 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: Sun, 16 Jan 2005 10:20:52 -0000 On Sat, Jan 15, 2005 at 10:46:03PM -0500, Robert William Vesterman wrote: > I have a similar problem, but only after I use X. I can su perfectly > fine before using X, and I can su perfectly fine while using X (and a > terminal window), but after exiting X, if I want to su, I have to reboot. You might want to try the following C program to check that getlogin is returning the right name at each stage. David. 10:18:gonzo 17% cat printlogin.c #include #include int main(void) { puts(getlogin()); } 10:18:gonzo 18% gcc -o printlogin printlogin.c 10:18:gonzo 19% ./printlogin dwmalone