From owner-freebsd-gnome@FreeBSD.ORG Fri Aug 12 20:41:43 2011 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11857106566B; Fri, 12 Aug 2011 20:41:43 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 910938FC13; Fri, 12 Aug 2011 20:41:42 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 2939E25D3870; Fri, 12 Aug 2011 20:41:40 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 1F581BD3CDE; Fri, 12 Aug 2011 20:41:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 39RICXKQ51KH; Fri, 12 Aug 2011 20:41:38 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A3043BD3C41; Fri, 12 Aug 2011 20:41:38 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: Date: Fri, 12 Aug 2011 20:41:36 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <492CA9C5-9681-48F1-92ED-C5246B457DDB@FreeBSD.org> References: <201108121653.p7CGr4Oo045140@red.freebsd.org> To: Robert Auch X-Mailer: Apple Mail (2.1084) Cc: gnome@FreeBSD.org Subject: Re: misc/159721: Usernames that are too long get logged onto GUI console as root X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 20:41:43 -0000 On Aug 12, 2011, at 6:03 PM, Oliver Pinter wrote: Hi, > On 8/12/11, Robert Auch wrote: >>=20 >>> Number: 159721 >>> Category: misc >>> Synopsis: Usernames that are too long get logged onto GUI = console as >>> root >>> Confidential: no >>> Severity: critical >>> Priority: high >>> Responsible: freebsd-bugs >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Fri Aug 12 17:00:22 UTC 2011 >>> Closed-Date: >>> Last-Modified: >>> Originator: Robert Auch >>> Release: 8.1 >>> Organization: >> BeyondTrust Software >>> Environment: >>> Description: >> A user with a logon name longer than 8 characters gets logged into = FreeBSD >> as "root" after successful authentication as themselves, when logging = in >> through GDM. >>=20 >> This problem cannot be replicated in GDM on Linux, and appears to be = related >> to the 8 character username limit in FreeBSD. >>=20 >> [root@freebsd81-64 /usr/home/LAMPI/localuser10]# su = LAMPI\\localuser10 >> su: username too long >>=20 >> Any users coming from BeyondTrust PBIS or Likewise Open or NIS or = LDAP who >> have usernames longer than 8 characters get blocked logging in via = ssh or >> su, but when authenticating via GDM, they are dropped into the OS as = "root" >> with $EUID=3D0 and $UID=3D0. >>=20 >> [root@freebsd81-64 /usr/home/LAMPI/localuser10]# id = lampi\\localuser10 >> uid=3D239600760(LAMPI\localuser10) gid=3D239600129(LAMPI\domain^users) >> groups=3D239600129(LAMPI\domain^users),1545(BUILTIN\Users) >>> How-To-Repeat: >> Create a user in a shared authentication engine with length($user) > = 8. >> make sure that the user shows up in NSS via "id". Then log in via GDM = as the >> user. Open a terminal and type "id" to see that the user is now = "root". First of all this is a ports issue. I added the maintainer of the port = to Cc:. But could you please follow-up to the PR with the version of gdm you = are using. Checking the port I see quite a few fixes lately: http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/gdm/Makefile If you are on the latest version the port should be marked broken for = security reasons and you should work with the maintainer to get it fixed. /bz --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.