From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45150 invoked by alias); 24 Apr 2015 11:04:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 45137 invoked by uid 89); 24 Apr 2015 11:04:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Apr 2015 11:04:40 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id DD0EAA80975; Fri, 24 Apr 2015 13:04:37 +0200 (CEST) Date: Fri, 24 Apr 2015 11:04:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: File owner set to Unknown+User on cygwin 1.7.35 via samba 3.6.6 on debian Message-ID: <20150424110437.GO3657@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1883631812.201190.1429592754813.JavaMail.zimbra@ceos.com.au> <20150421085053.GW3657@calimero.vinschen.de> <1277097406.207429.1429664315268.JavaMail.zimbra@ceos.com.au> <20150422084333.GA3657@calimero.vinschen.de> <1756410182.228840.1429755696338.JavaMail.zimbra@ceos.com.au> <55386C07.7050400@gmail.com> <20150423080445.GE3657@calimero.vinschen.de> <940053103.236275.1429838668520.JavaMail.zimbra@ceos.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+zeCMqFCsETNqUaq" Content-Disposition: inline In-Reply-To: <940053103.236275.1429838668520.JavaMail.zimbra@ceos.com.au> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-04/txt/msg00575.txt.bz2 --+zeCMqFCsETNqUaq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2101 On Apr 24 11:24, John Orr wrote: > Any other suggestions on how to get Samba to return S-1-22-1-1000? Not from me, no. I don't know why this happens on your machine. My samba is connected with my AD and I'm accessing it with my AD account. /etc/samba/smbusers contains corinna =3D VINSCHEN\corinna But still, the SIDs I get returned for my Linux uid is one of the S-1-22-1-X type. I don't know Samba good enough to explain the difference, sorry. > > Or, in Cygwin, you just keep a passwd file > > with two entries around. These entries should be equivalent to the > > output of `getent passwd $USER', so just copy/paste it twice. Then > > tweak the SID of the second entry to match the above SID. The end resu= lt > > should be: > >=20 > > john:*:197608:197121:U-JOHNDESKTOP\john,S-1-5-21-775725812-2182925691-= 3402384268-1000:/home/john:/bin/bash > > john:*:197608:197121:U-JOHNWL\john,S-1-5-21-2908258922-1501660359-1356= 206134-1000:/home/john:/bin/bash >=20 > Yep, that may indeed be the best option, with an entry for each samba ser= ver I connect to, > though I can't help feeling that the S-1-22-1-1000 option is the cleaner = one... >=20 > Anyway, doing the above to the passwd file does work > #: john@johndesktop:~ ; ls -l /cygdrive/l/.bashrc > -rw-r--r-- 1 john Unix_Group+1000 3833 Aug 22 2013 /cygdrive/l/.bashrc >=20 > Now I just need to get the group right. The ntsec help says to just set = the comment on > the Users group to (and restart all cygwin proces= ses). I did this,=20 > but it didn't seem to help - maybe because 'id' says my group is None, or= because=20 > net localgroup Users=20 > doesn't mention me? You would have to do that for None, which is tricky given the restrictions in the Windows UI. Alternatively, try to set your primary group to Users in /etc/passwd by setting it to 545. Or, try the same trick as for your user account with the None group in /etc/groups. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --+zeCMqFCsETNqUaq Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVOiNFAAoJEPU2Bp2uRE+gw5sQAJSoPIzm1d1qJuACFllt2uIM CbcOwS92JewUXCfmsLOx9hYAdAY8REgeHkLPo4krWGmF/29r7PI0JDB1Zfnb0fh2 0EsAW8y9mFI8qPjU01EsXwg+cucuknjjNk/Ss/75lQt333RYpElbhsqhYEFU9Ttq R7ofRG2vwoDASJ8P7veeKckHAnkEBdsOBz3BUSTVDtuzB+PNbZrYOBnSeA8Jd1As vhaUux0EiWTAw0KBwjuoB671A1qKKCTe61pog0cLleFidudKWa3N6e4FgA0Qotf5 abuHZNpDQD0CNUTjwARLiIlQdsrIs1UfcBb6rJGPaoL31ehK/NibxAutkPdPDOvD UY5v3lBv6OwsBIO5WjJzF/qEsh6mxgrX8ueztfxUhmxzVFD9xYNRlDpjUbSrNG9Y v3ioQm+oI6CEVu8xals4Qr7fKTGc3DBVNA9ma8iQbt3OBzME3zcqpBiah2WYAupI NmLyGXZl60QPJZRNboAR2LSTZeUWMQtPIVFAlkmkxkrf70rdltnh1FzlbYv37uw5 +ceHEyXRizU+DzU9iALxBP3R/9U4l4S5YGPTVwoIHiWy5aRXGJF4fPSRiZNP69zS GVNuZ9/JQjsSO8eTy1Tzs3CbEQCwlnd9NWonoZOGwdw4mcDw6oVzjBaPMb+RlOR8 sI1ooVeRHYdYJj8s1fYI =+QKC -----END PGP SIGNATURE----- --+zeCMqFCsETNqUaq--