From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87716C433B4 for ; Tue, 13 Apr 2021 19:47:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E82D6124B for ; Tue, 13 Apr 2021 19:47:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbhDMTsO (ORCPT ); Tue, 13 Apr 2021 15:48:14 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:34932 "EHLO Ishtar.sc.tlinx.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbhDMTsO (ORCPT ); Tue, 13 Apr 2021 15:48:14 -0400 X-Greylist: delayed 2045 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Apr 2021 15:48:14 EDT Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 13DJDkBL023319 for ; Tue, 13 Apr 2021 12:13:48 -0700 Message-ID: <6075ED6A.6010603@tlinx.org> Date: Tue, 13 Apr 2021 12:13:46 -0700 From: L Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: linux-cifs Subject: multiuser access and group membership(s) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org I tried the multiuser mount using domain-creds. Surprises: * Files owned by local accounts appeared to be owned by 'root:root'. * Files in well-known-groups, seemed to resolve ok, but didn't recognize my domain login as being in one of those groups. * Files with group ownership of Administrators allowed access regardless of permission bits (though I am in Administrators group). -However, files owned (showing in UID) field AdministratorsGroup showed up as being owned by 'root' from the linux machine and didn't enable access (though some other rule might). === Interesting direction. I have some disappointment in that the remote Windows machine doesn't recognize membership in domain groups (or local groups) when mount options use a domain account (and cifscreds contain a domain account). Ex.: (w/Bliss or BLISS being my local NT4-style domain hosted on the linux box). local group "lawgroup" on Win machine, contains BLISS\Domain Admins Bliss\law BLISS\lawgroup law (local account) yet to 'Bliss/law' on linux, it appears to be owned by 'root' and doesn't enable access. Shouldn't the smb server on the win-machine be able to enable access via domain group membership? Maybe I just don't have it configured correctly...? Also noting that unix extensions don't seem to be getting negotiated. From mount, listed options are: //Athenae/C/ on /athenae type cifs (rw,nosuid,nodev,noexec,relatime,vers=2.1,cache=strict,username=law, domain=BLISS,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.3.12, file_mode=0755,dir_mode=0755,nocase,soft,resilienthandles,nounix, setuids,serverino,mapchars,cifsacl,rsize=1048576,wsize=1048576, bsize=1048576,echo_interval=60,max_credits=60000,actimeo=1,user) Q: Is it possible to get the Win server to recognize group memberships? I note that Privileges in the domain aren't acknowledged on the win-file-system, though the win-user using a samba-mount will have privs recognized. Thanks!