X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org From: "John Daintree" To: Subject: Incorrect names for file owners on mapped samba drives Date: Fri, 30 Oct 2009 15:46:49 -0000 Message-ID: <001b01ca5978$32cbb900$98632b00$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Identified-User: {765:host89.hostmonster.com:dyalogco:dyalog.co.uk} {sentby:smtp auth 81.187.162.50 authed with johnd AT dyalog DOT co DOT uk} 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 Hello all, I've got a number of drives mounted from=A0 SAMBA machine (which is running linux).=A0 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=3D0,user,noumount,auto) "ls -l"=A0 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 =A0/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=3D1000(johnd) gid=3D513(None) groups=3D0(root),544(Administrators),545(Users),1006(Debugger Users),513(No= ne) 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".=A0 This indicates that your gid is not = in /etc/group and your uid is not in /etc/passwd. and the "id" command returns: uid=3D400(johnd) gid=3D401(mkpasswd) groups=3D0(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=A0 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