public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: update trouble 1.7.35
Date: Tue, 24 Mar 2015 20:42:00 -0000	[thread overview]
Message-ID: <20150324203417.GB32703@calimero.vinschen.de> (raw)
In-Reply-To: <33EC3398272FBE47B64EE3B3E98F69A76C415077@de011521.schaeffler.com>

[-- Attachment #1: Type: text/plain, Size: 2717 bytes --]

On Mar 24 17:56, Lemke, Michael  ST/HZA-ZSW wrote:
> On Tuesday, March 24, 2015 5:49 PM Corinna Vinschen wrote:
> >> Note that "they" did a domain switch here at some point.  My installation 
> >> is really old and the passwd certainly is from before that domain change.
> >
> >That explains it.  Please recreate your /etc/passwd and /etc/group
> >files with mkpasswd and mkgroup, or, even better, just discard them.
> >
> 
> I just created new ones.  I like passwd/group much better than AD, sorry.  
> Just like real unix before the invention of yellow pages and nis.

Yeah, but real unix these days is NIS+ or FreeIPA, or... even AD :)

> This 
> way I can easily give different shells to different users (not that it is
> really important at the moment).

You can do that in AD as well.  Or, as long as all users want the same
shell, you can simply use `db_shell: /bin/tcsh'.

> In nsswitch.conf I put 
> passwd: files db
> group: files db

That's the default setting.  You can simply remove nsswitch.conf in this
case, which should result in a slightly faster startup because Cygwin
doesn't have to scan YA file.

> and ls listings seem to look fine.  Login is also possible again
> with correct tcsh shell.

I'm glad to read that.

> >The problem is the domain switch which also changed the SID of your user
> >account.  The old SID, which you also have in your passwd, is not
> >returned by the server anymore.  But it's stored in your SID history in
> >AD and when asking for it you get an answer.
> 
> So, to sort of sum this up: the new cygwin doesn't deal well with 
> contradicting entries in passwd and AD. 

Basically, yes.  More to the point, your user token and your passwd
file contradict each other.  The user and owner entry in your
user token is your new SID.  The old SID only shows up in the token's
group list, afaik.

> >Downside: Cygwin can't handle the old SIDs from your SID history quite
> >correctly.  
> 
> Actually, with "files db" it seems to handle it quite well.  I get the same
> username for both kind of files.  There are still lots of files in my
> home I created before the domain switch.

Ok, I just can't guarantee that it always works.  The SID history stuff
is a weird solution for a weird problem.

> >Trying to support them as well would slow down the user and
> >group lookups a lot.  If you can live with what we just found out and
> >the solution I suggested, I'd be rather happy :}
> >
> 
> Yes, I am happy now.

Then I am, too :)


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2015-03-24 20:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 18:56 Lemke, Michael  ST/HZA-ZSW
2015-03-23 19:39 ` Corinna Vinschen
2015-03-24 14:00   ` Steve Johnson
2015-03-24 14:05     ` Corinna Vinschen
2015-03-24 15:50       ` Lemke, Michael  ST/HZA-ZSW
2015-03-24 16:22         ` Corinna Vinschen
2015-03-24 16:33           ` Lemke, Michael  ST/HZA-ZSW
2015-03-24 17:03             ` Corinna Vinschen
2015-03-24 18:40               ` Lemke, Michael  ST/HZA-ZSW
2015-03-24 18:59                 ` Andrey Repin
2015-03-24 20:42                 ` Corinna Vinschen [this message]
2015-03-24 14:03   ` Habermann, David (D)
2015-03-24 14:11     ` Corinna Vinschen
2015-03-24 14:20       ` Corinna Vinschen
2015-03-24 14:29     ` Corinna Vinschen
2015-03-24 14:33       ` Corinna Vinschen
2015-03-24 14:57       ` Habermann, David (D)
2015-03-24 15:11     ` Achim Gratz
2015-03-24 16:37       ` Habermann, David (D)
2015-03-24 16:25 Steve Johnson
2015-03-24 16:48 ` Corinna Vinschen
2015-03-24 19:53   ` Steve Johnson
2015-03-24 21:28     ` Corinna Vinschen
2015-03-25  6:19       ` Steve Johnson
2015-03-25  9:25         ` Corinna Vinschen
2015-03-25 14:39           ` Steve Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150324203417.GB32703@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).