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: References: <001b01ca5978$32cbb900$98632b00$@com> <4AEB0D7D DOT 8090006 AT cygwin DOT com> In-Reply-To: <4AEB0D7D.8090006@cygwin.com> Subject: RE: Incorrect names for file owners on mapped samba drives Date: Fri, 30 Oct 2009 17:17:57 -0000 Message-ID: <002501ca5984$eddd7830$c9986890$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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 > -----Original Message----- > From: Larry Hall (Cygwin) [mailto:reply-to-list-only-lh AT cygwin DOT com] > Sent: 30 October 2009 16:00 > To: cygwin AT cygwin DOT com > Subject: Re: Incorrect names for file owners on mapped samba drives >=20 > On 10/30/2009 11:46 AM, John Daintree wrote: > > 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 > ^^^ > Don't change your SID. You can change your UID if you want, since this > is a > Cygwin thing. But if you change your SID, Cygwin can't map your UID > back to > the Windows SID. So then Windows won't know who you are, and Cygwin > really > won't either (in Windows terms). That's why you got the message you > did. >=20 > Assuming SAMBA uses 208 as your user ID,you should get proper (user) > ownerships > displaying. The same is true for your GID, if you want that. Thanks Larry, That seems to get be nearer where I want to be. I'm still ge= tting some confusing (to me at least!) results. Given that mount includes: U: on /cygdrive/u type smbfs (binary,posix=3D0,user,noumount,auto) i.e. u: and /cygdrive/u are the same location why is it that "ls -n u:/tmp/jd.tmp" gives: -rw-r--r-- 1 208 200 0 Oct 30 16:45 u:/tmp/jd.tmp but "ls -n /cygdrive/u/tmp/jd.tmp" gives: -rw-r--r-- 1 4294967295 4294967295 0 Oct 30 16:45 /cygdrive/u/tmp/jd.tmp In addition "ls -n u:/tmp/*" returns the same UID (MY uid) for every file i= n the directory even though they are owned by different users. I created a = new user on my windows machine and when I log in on that account all the fi= les in u:/tmp are reported as owned by that user. Again windows explorer li= sts the correct owner for each file (as DEVT\username). Thanks again, john. > -- > Larry Hall http://www.rfk.com > RFK Partners, Inc. (508) 893-9779 - RFK Office > 216 Dalton Rd. (508) 893-9889 - FAX > Holliston, MA 01746 >=20 > _____________________________________________________________________ >=20 > A: Yes. > > Q: Are you sure? > >> A: Because it reverses the logical flow of conversation. > >>> Q: Why is top posting annoying in email? >=20 > -- > 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 -- 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