X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 22 Jan 2009 12:31:04 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: ???????? owner and group Message-ID: <20090122113104.GC17948@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4977B557 DOT 1070708 AT etr-usa DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4977B557.1070708@etr-usa.com> User-Agent: Mutt/1.5.17 (2007-11-01) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Jan 21 16:52, Warren Young wrote: > I'm breaking in a new machine, and just noticed that when I "ls -l" a Samba > share I have mounted, I get ???????? in place of the user and group instead > of "myname None" as I normally expect, for all files. If I say "ls -ln", > the values are (u_long(-1)). > > If I list something on the local filesystem that I own, it's fine. Some > system files show similar question mark symptoms, though, like regedit.exe: > > -rwxrwx---+ 2 4294967295 4294967295 134656 Jan 20 2008 regedit.exe > > Following advice about ???????? in the user guide, I checked that > /etc/passwd exists, and it does. > > I added 'acl' to my cygdrive mount line in /etc/fstab for 1.7, but that > didn't change anything. Exactly. 'acl' is the default anyway. The problem is this: 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. 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. > I haven't noticed any permission failures, so maybe this is just a display > issue, not some credential issue. Right. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/