X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43 X-Spam-Check-By: sourceware.org Message-ID: <4978A932.5040900@etr-usa.com> Date: Thu, 22 Jan 2009 10:13:22 -0700 From: Warren Young User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ???????? owner and group References: <4977B557 DOT 1070708 AT etr-usa DOT com> <20090122113104 DOT GC17948 AT calimero DOT vinschen DOT de> In-Reply-To: <20090122113104.GC17948@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Corinna Vinschen wrote: > > Have a look into the ACL by using Windows Explorer properties/security > dialog. What you see is thatthe user and group for a file on the share > is "Unix User\yourunixuser" and "Unix Group\yourunixgroup". These > accounts are missing in your /etc/passwd and /etc/group files. Okay, that clears up the Samba side, but what about the local system files? $ getfacl /c/Windows/regedit.exe # file: /c/Windows/regedit.exe # owner: ???????? # group: ???????? user::rwx group::rwx group:root:r-x group:SYSTEM:r-x group:Users:r-x mask:rwx other:--- I re-ran mkpasswd with no flags, and got the same thing I have in /etc/passwd already. > What you can do: > > - Add the Unix accounts to /etc/passwd and /etc/group, for instance: > > $ mkpasswd -L sambaserver,20000 -U yourunixuser > Unix User\yourunixuser:unused:21000:99999:,S-1-22-1-1000:: > $ mkgroup -L sambaserver -U yourunixgroup > Unix Group\yourunixgroup:S-1-22-2-101:20101: > > - Change the cygdrive flags in /etc/fstab to noacl, which is equivalent > to the old CYGWIN=nosmbntsec. These are alternatives, right, not two steps that both have to be done? I tried the second part first, figuring that I didn't mind the old nosmbntsec behavior -- all your files are belong to us -- but still got the question marks. Then I broke down and built up /etc/passwd and /etc/group until all the question marks over Samba went away, then removed the noacl option, restarted all Cygwin stuff, and the question marks are still gone. So, is noacl not doing what it's supposed to? If I change the cygdrive fstab entry to: none / cygdrive binary,posix=0,user,noacl 0 0 and restart all of Cygwin, I see: $ mount C:/cygwin/bin on /usr/bin type unknown (binary) C:/cygwin/lib on /usr/lib type unknown (binary) C:/cygwin on / type unknown (binary) C: on /c type ntfs (binary,posix=0,user,noumount) D: on /d type ntfs (binary,posix=0,user,noumount) T: on /t type smbfs (binary,posix=0,user,noumount) U: on /u type smbfs (binary,posix=0,user,noumount) V: on /v type smbfs (binary,posix=0,user,noumount) noacl doesn't appear in the mount flags. Is it incompatible with one of the others? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/