From owner-freebsd-current@FreeBSD.ORG Sat Sep 23 01:00:22 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 358E016A407 for ; Sat, 23 Sep 2006 01:00:22 +0000 (UTC) (envelope-from luoqi@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFEFB43D45 for ; Sat, 23 Sep 2006 01:00:21 +0000 (GMT) (envelope-from luoqi@FreeBSD.org) Received: from freefall.freebsd.org (luoqi@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8N10LhD049282 for ; Sat, 23 Sep 2006 01:00:21 GMT (envelope-from luoqi@freefall.freebsd.org) Received: (from luoqi@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8N10LvU049281 for current@freebsd.org; Sat, 23 Sep 2006 01:00:21 GMT (envelope-from luoqi) Date: Sat, 23 Sep 2006 01:00:21 GMT From: Luoqi Chen Message-Id: <200609230100.k8N10LvU049281@freefall.freebsd.org> To: current@freebsd.org Cc: Subject: su failed to chdir with NFS mounted home dir 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: Sat, 23 Sep 2006 01:00:22 -0000 Hi, I've encountered a problem with su on NFS mounted home dir. In revision 1.68 of su.c, the code was rearranged to chdir before new uid was set, this chdir would fail if local root doesn't have permission to enter the target user's home dir. This is exactly the case when you have a NFS mounted home dir with 0750 permission while root is mapped to nobody on NFS. Is there an owner for su.c? I'd like to modify it to delay this chdir to after the new uid is set. Thanks -lq