public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Followup: 1.3.17: sshd closes terminal immediately after establishingconnection (1.3.13 ? 1.3.14)
@ 2003-01-13  3:30 jurgen.defurne
  0 siblings, 0 replies; 2+ messages in thread
From: jurgen.defurne @ 2003-01-13  3:30 UTC (permalink / raw)
  To: Pierre A. Humblet; +Cc: cygwin

Thanks Pierre,

I worked it out with regenerating the group file, according to your first
mail (BTW, I am a member of 10513, but it was not reflected as it
should have been. Now, my id is correct).

However, I had to know how to prune it, because in our organisation,
the group file generated from the all overlapping domain contains
some 22000 entries. Luckily, these are named according to
organisational domain, and I could pick out those which were
relevant, leaving me with only about 500 entries.

After mirroring my new group file to my servers, and updating to
cygwin 1.3.18, I was able to login on this machine, and now I can
start upgrading my other machines.

Regards,

Jurgen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Followup: 1.3.17: sshd closes terminal immediately after  establishingconnection (1.3.13 ? 1.3.14)
  2002-12-19  3:57 Followup: 1.3.17: sshd closes terminal immediately after establishing connection " jurgen.defurne
@ 2002-12-20  8:38 ` Pierre A. Humblet
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre A. Humblet @ 2002-12-20  8:38 UTC (permalink / raw)
  To: jurgen.defurne; +Cc: cygwin

jurgen.defurne@philips.com wrote:
> 
Hello Jurgen,,

thanks for the trace you sent me privately.

> so I have to run the sshd as a specific user, and I also can
> not install sshd as a service. 

<snip>

> debug1: permanently_set_uid: 45090/10513
> setuid 45090: Permission denied

You also report that the output of id is:

uid=45056(beq00871) gid=10513(Domain Users) groepen=547(Power Users),545(Users)

Note that your gid 10513 is not one of your groups (547, 545). 
This violates a basic Cygwin assumption, see
http://cygwin.com/ml/cygwin/2002-12/msg00264.html
http://cygwin.com/ml/cygwin/2002-12/msg00214.html
and this can lead to various problems. It causes an internal error
when you start Cygwin:
internal_getlogin: SetTokenInformation(TokenPrimaryGroup): Win32 error 1308 

So what's happening is that the non-privileged daemon gets a request 
for a login with   permanently_set_uid: uid=45090/gid=10513
This request can't be satisfied because 10513 is not a current group of
the daemon and it doesn't have the privilege to add groups.

The solution is simple: either edit /etc/passwd and change the gid to
547 or 545, or in Windows add the user to the Domain Users group.

Pierre

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-10 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13  3:30 Followup: 1.3.17: sshd closes terminal immediately after establishingconnection (1.3.13 ? 1.3.14) jurgen.defurne
  -- strict thread matches above, loose matches on Subject: below --
2002-12-19  3:57 Followup: 1.3.17: sshd closes terminal immediately after establishing connection " jurgen.defurne
2002-12-20  8:38 ` Followup: 1.3.17: sshd closes terminal immediately after establishingconnection " Pierre A. Humblet

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