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/