Incorrect names for file owners on mapped samba drives

John Daintree johnd@dyalog.com
Fri Oct 30 15:47:00 GMT 2009


Hello all,

I've got a number of drives mounted from  SAMBA machine (which is running
linux).  My local machine is running Cygwin 1.7 on Windows 7 x64.

Here's (some of) my mount output:

//devt/users/johnd on /j type smbfs (binary,notexec,user)
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
J: on /cygdrive/j type smbfs (binary,posix=0,user,noumount,auto)

"ls -l"  on /cygdrive/j and /j returns "????????" as the name of both the
owner and the group of all the files on those drives. Windows explorer
correctly identifies DEVT\johnd as the owner of the files.

johnd's line in  /etc/passwd is:

johnd:unused:1000:513:U-johnd-PC\johnd,S-1-5-21-2127453718-491543372-2845810
030-1000:/home/johnd:/bin/bash

and "id" returns:

uid=1000(johnd) gid=513(None)
groups=0(root),544(Administrators),545(Users),1006(Debugger Users),513(None)

on the SAMBA machine my UID is 208, so I figured I'd just need to change the
above to:

johnd:unused:208:513:U-johnd-PC\johnd,S-1-5-21-2127453718-491543372-28458100
30-208:/home/johnd:/bin/bash

But, having done that and re-logged in I get the message:

Your group is currently "mkpasswd".  This indicates that your gid is not in
/etc/group and your uid is not in /etc/passwd.

and the "id" command returns:

uid=400(johnd) gid=401(mkpasswd)
groups=0(root),544(Administrators),545(Users),1006(Debugger
Users),513(None),401(mkpasswd)

I've no idea where those 400s came from.

an "ls -n" on a single file returns:

rwxrw-r-- 1 4294967295 4294967295 1286 Mar 11  2009 zones.h

so maybe the UIDs aren't getting across at all from the SAMBA server.

What do I need to do to get the usernames "in sync" with the SAMBA box?

Thanks again everyone,

/john



--
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



More information about the Cygwin mailing list