From owner-freebsd-current@FreeBSD.ORG Wed Oct 17 19:13:07 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 B31FF16A420 for ; Wed, 17 Oct 2007 19:13:07 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 7095A13C43E for ; Wed, 17 Oct 2007 19:13:07 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so325286wra for ; Wed, 17 Oct 2007 12:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=vAiaJ8W6gWVN104xQN3GB8j0Ijw+D1XkPbu1Q7z9IFc=; b=UDmHB6ExWK3vg5cJo/EZhapTiwCx6g1fKxtL0/sqd4pflNdUDLIP9SJT+u6g5CJtYlc6Tzmv7TeYPvtemMqitakZ5RZpphZl9GP4iaqHe/NrOiBl05LsfBDIAqzwDcUXoPG/+EzZVyfJHow2ta/arOUeHmN/1CX5GN4FLH7+2sc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t0Y6JJdyKU5YRDHRksh/QIlQV1R4KxqcU9e3Vq4EAPzOGXAeuN7AjWNtfvL8q0hcHp3rkpAuXDqWwzLHOWdZPcHioIQHf5wEERfZRkOJr93f9ZHal/AmuBLHk1eOt9Wdwno9bZY63IprKOTGdt3vwsqwwTOsmC5tP7gZkzQls8E= Received: by 10.90.105.20 with SMTP id d20mr13174630agc.1192646636075; Wed, 17 Oct 2007 11:43:56 -0700 (PDT) Received: by 10.90.29.9 with HTTP; Wed, 17 Oct 2007 11:43:56 -0700 (PDT) Message-ID: <8cb6106e0710171143m3dff7546o457192ede76e6598@mail.gmail.com> Date: Wed, 17 Oct 2007 14:43:56 -0400 From: "Josh Carroll" To: "Artem Kuchin" In-Reply-To: <00bd01c810ec$10371230$0c00a8c0@Artem> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <00bd01c810ec$10371230$0c00a8c0@Artem> 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 Reply-To: josh.carroll@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 19:13:07 -0000 > if you try to run a very simple perl script: > > #!/usr/bin/perl > $com="/usr/bin/su root -c 'echo heck'"; > system($com); > print "done!\n"; This works fine for me. If I run it as root (and change the user it's su'ing to to a normal user), it runs find and prints: heck done If I run it as a normal user su'ing to root (e.g. the same as you're doing), I get a Password: prompt, and entering my password it still works: % ./su.pl Password: heck done! Do you have another way to reproduce this? Because that particular test is working fine here on a RELENG_7 box (csup'd last night). Josh