delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/24/13:45:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=YGzYkvmiAaeHxNhLEhikYHyW0Oeg+xzEYmkEhq6OT7Ppu5GVVPB0E
bj+Qo7EQlzfnnylwApKbVHg9pJN6jN37z1v2F3Qoa5I+aGCutlw9ZF1YC1AeZ3ZJ
11dWb6En/4OZyhHPndVOrhB7cnSCmmOBvY3ewfnp7zc1JF5XvG4kFE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=SiFK7ECufcVING5V9eOGbdL0mOQ=; b=Jd85v3PVqOBbtETqC6pIAUmOodqt
4/BXyEiM1NdsmWzcxQePQ0mwwEEnIGiZ7d4+qJieM8mY09uhors0QmjjKUJGS124
yEcVfSvFI0eH6S0TxfoGY46Vsjxo9DyG2Rx8JNhE0x2XY9R/bjNZOkNd/D/CV/6Z
EqWWLhyPoEZ/E3A=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Fri, 24 Apr 2015 13:04:37 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1883631812 DOT 201190 DOT 1429592754813 DOT JavaMail DOT zimbra AT ceos DOT com DOT au> <20150421085053 DOT GW3657 AT calimero DOT vinschen DOT de> <1277097406 DOT 207429 DOT 1429664315268 DOT JavaMail DOT zimbra AT ceos DOT com DOT au> <20150422084333 DOT GA3657 AT calimero DOT vinschen DOT de> <1756410182 DOT 228840 DOT 1429755696338 DOT JavaMail DOT zimbra AT ceos DOT com DOT au> <55386C07 DOT 7050400 AT gmail DOT com> <20150423080445 DOT GE3657 AT calimero DOT vinschen DOT de> <940053103 DOT 236275 DOT 1429838668520 DOT JavaMail DOT zimbra AT ceos DOT com DOT au>
MIME-Version: 1.0
In-Reply-To: <940053103.236275.1429838668520.JavaMail.zimbra@ceos.com.au>
User-Agent: Mutt/1.5.23 (2014-03-12)

--+zeCMqFCsETNqUaq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 AT 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 <cygwin unix=3D"1000"/> (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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019