X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=qYd9nkDh2M7PWrDMgs+BVprkeSW2xNv+dhtNdZPF//7exNq+38YZ1 R/PKo8tKwh9ufX+0IiVVRUAhUFPUs6JNKGnEmiNKU7/6UrmKU7BVJVYT2WmmEIjM fAkW7pC/06raRkbhStmOGtk7Haak4HYs/qqTnFnEBHhsQD3fvQPebY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=Ac7Y/ZXne0EKerKvplGg6wy580o=; b=e+2vdZgMTdDbDYLKy61+V2AVRVqC UtznnWdu9wjFnE9sz3BoQZSkTtm/2Yd1Eco5HoTF+8CJs7+eXzkEEg6TJq6yE1Up vIFacEDPLUtjuu9oeBQUINJpi6nspxOFwnXaGJUxCms/sWbJdw5zU0fTAkpktNdU SPOnHxDWcLQKRQ4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_FSL_HELO_BARE_IP_2,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Achim Gratz Subject: Re: Testers needed: New passwd/group handling in Cygwin Date: Tue, 11 Mar 2014 15:07:33 +0000 (UTC) Lines: 44 Message-ID: References: <87fvn7cb68 DOT fsf AT Rainer DOT invalid> <20140225200414 DOT GA4238 AT calimero DOT vinschen DOT de> <20140310181339 DOT GF28681 AT calimero DOT vinschen DOT de> <87mwgxsyac DOT fsf AT Rainer DOT invalid> <20140310191603 DOT GH28681 AT calimero DOT vinschen DOT de> <87iorlsvvn DOT fsf AT Rainer DOT invalid> <20140311102007 DOT GJ28681 AT calimero DOT vinschen DOT de> <20140311130716 DOT GB21306 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Corinna Vinschen cygwin.com> writes: > You don't have to move them away. Just set nsswitch.conf. Did that and using the snapshot DLL from 2014-03-05 on top of a full snapshot install from 2014-03-10. The ACL is this: # file: x86 # owner: gratz # group: Domain Users user::--- group::--- group:admin-cygwinupload:rwx group:user-cygwinupload:rwx mask:rwx other:--- default:user::--- default:group::--- default:group:admin-cygwinupload:rwx default:group:user-cygwinupload:rwx default:mask:rwx default:other:--- With the original passwd and group file in place and nsswitch.conf set to either "files" or "files db" the test fails. With just "files" getfacl doesn't show the group ACL at all, while with "files db" I see the ACL for both the admin and the user group (both are not in the group file). Setting to just "db" the ACL is shown as before and the test from Perl now succeeds! In fact any combination that includes "files" fails. So, after some head scratching I changed the uid and gid in the passwd and group files to match the new mapping scheme and lo and behold the test is now working. The getfacl command starts to show the group ACL when I add them to the group file (with the correct gid mapping), but the test still fails with "files" only. With the correct group entries and "files db", the test also works. So, Perl somehow uses the gid/uid mapping and relies on those to be working, while bash uses a code path that doesn't and probably just uses the uid/gid directly. I guess I could make the "files" only case work by adding some more groups (no time for checking what that might be at the moment), again changing the mapping (will mkpasswd do this at some point?). Do you still need traces or does get you a test case that works in your environment? Regards, Achim. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple