From owner-freebsd-current@FreeBSD.ORG Thu Oct 18 12:04:57 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32A6316A4A7 for ; Thu, 18 Oct 2007 12:04:57 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id E164C13C458 for ; Thu, 18 Oct 2007 12:04:56 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 6AA921B10F09; Thu, 18 Oct 2007 14:04:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, MIME_8BIT_HEADER autolearn=no version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id E35931B10EA4; Thu, 18 Oct 2007 14:04:52 +0200 (CEST) Message-ID: <47174BE4.6020300@moneybookers.com> Date: Thu, 18 Oct 2007 15:04:52 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.6 (X11/20070918) MIME-Version: 1.0 To: =?UTF-8?B?6Z+T5a625qiZIEJpbGwgSGFja2Vy?= References: <00bd01c810ec$10371230$0c00a8c0@Artem> <8cb6106e0710171143m3dff7546o457192ede76e6598@mail.gmail.com> <012c01c810f3$aafeecf0$0c00a8c0@Artem> <20071017193615.GO9006@server.vk2pj.dyndns.org> <471667DB.1010601@conducive.net> <47170FF1.3050602@moneybookers.com> <471746C7.20306@conducive.net> In-Reply-To: <471746C7.20306@conducive.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV 0.91.2/4545/Wed Oct 17 23:05:57 2007 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-current@freebsd.org Subject: Re: Broken su in current - trying to fix myself, help needed! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 12:04:57 -0000 Hi Bill, =E9=9F=93=E5=AE=B6=E6=A8=99 Bill Hacker wrote: > Stefan Lambrev wrote: >> Hi, >> > *snip* > >>> I will not be surprised if it occurs when building as an 'ordinary=20 >>> user' and does NOT occur when building as root.... >>> >>> BNL (BSD's Not Linux).... >>> > >> I see something similar on all ports that have OPTIONS (make config). >> Here is example (do this as user member of wheel, but not root): >> > > Stop right there. '..NOT root'?? > > Why would I DO that? You can do this by mistake for example. When you have 10 terminals=20 sometimes you did not pay enough attention are you root or not Also you may want only to "read" what is the last configuration of a=20 port using: make config (not configure!) and for this you do not have to be root( see permitions of /var/db/ports/= ) Also it's a nice feature in FreeBSD ports, so I really do not know why=20 not to use it, as it's a feature, but not a bug. Anyway why or why not does not matter. The only think that matter is that doing this trigger the bug in "su". Bug that does not exist in 6.2-STABLE or before, and normally bugs are=20 exploited by users that are not root. P.S. /usr/ports/Mk/ look for SU_CMD :) --=20 Best Wishes, Stefan Lambrev ICQ# 24134177