From owner-freebsd-ports@FreeBSD.ORG Wed Oct 11 12:24:13 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B73C816A4E1 for ; Wed, 11 Oct 2006 12:24:13 +0000 (UTC) (envelope-from ericlin@tamama.org) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC03E43DB6 for ; Wed, 11 Oct 2006 12:22:48 +0000 (GMT) (envelope-from ericlin@tamama.org) Received: by nf-out-0910.google.com with SMTP id n15so692655nfc for ; Wed, 11 Oct 2006 05:22:45 -0700 (PDT) Received: by 10.82.136.4 with SMTP id j4mr61184bud; Wed, 11 Oct 2006 05:22:45 -0700 (PDT) Received: by 10.82.105.20 with HTTP; Wed, 11 Oct 2006 05:22:44 -0700 (PDT) Message-ID: <47713ee10610110522h5b933892qf34d003f87fb13de@mail.gmail.com> Date: Wed, 11 Oct 2006 20:22:44 +0800 From: "Lin Jui-Nan Eric" Sender: ericlin@tamama.org To: freebsd-ports@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: b4234873e39e3b27 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: nss_ldap: problem of running sudo X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 12:24:13 -0000 Dear, I have encounter a problem when I run sudo with nss_ldap. The sudo program tells me that my password is wrong, but I can login with this password. After all, I found the problem is in ldap-pwd.c: if (getuid() != 0) { /* don't include password for non-root users */ After applied patches of ports system, the code showed above. But sudo does not change the uid. It changes the euid only. If I use geteuid() instead, sudo works well. Any suggestions? Best Regards, Jui-Nan