public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* supplement cygwin_logon_user with CreateProcessWithLogonW?
@ 2002-09-14 15:21 Chris January
  2002-09-14 16:55 ` Bobby McNulty Junior
  2002-09-16  2:39 ` Corinna Vinschen
  0 siblings, 2 replies; 4+ messages in thread
From: Chris January @ 2002-09-14 15:21 UTC (permalink / raw)
  To: Cygwin@Cygwin.Com

On Windows 2000, no extra privileges are needed to run
CreateProcessWithLogonW (as opposed to the LogonUser / CreateProcessAsUser)
combination. This is because CreateProcessWithLogonW utilises the RunAs
(2000)/SecondaryLogon (XP) service. Would it make sense to modify Cygwin so
this could be used in place of cygwin_logon_user if one so wished? If so,
I'll go about creating a patch.

Chris


--
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] 4+ messages in thread

* RE: supplement cygwin_logon_user with CreateProcessWithLogonW?
  2002-09-14 15:21 supplement cygwin_logon_user with CreateProcessWithLogonW? Chris January
@ 2002-09-14 16:55 ` Bobby McNulty Junior
  2002-09-16  2:39 ` Corinna Vinschen
  1 sibling, 0 replies; 4+ messages in thread
From: Bobby McNulty Junior @ 2002-09-14 16:55 UTC (permalink / raw)
  To: Chris January, Cygwin@Cygwin.Com


Sounds good to me. 



--
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] 4+ messages in thread

* Re: supplement cygwin_logon_user with CreateProcessWithLogonW?
  2002-09-14 15:21 supplement cygwin_logon_user with CreateProcessWithLogonW? Chris January
  2002-09-14 16:55 ` Bobby McNulty Junior
@ 2002-09-16  2:39 ` Corinna Vinschen
  2002-09-18 10:13   ` Chris January
  1 sibling, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2002-09-16  2:39 UTC (permalink / raw)
  To: Cygwin@Cygwin.Com

On Sat, Sep 14, 2002 at 10:46:33PM +0100, Chris January wrote:
> On Windows 2000, no extra privileges are needed to run
> CreateProcessWithLogonW (as opposed to the LogonUser / CreateProcessAsUser)
> combination. This is because CreateProcessWithLogonW utilises the RunAs
> (2000)/SecondaryLogon (XP) service. Would it make sense to modify Cygwin so
> this could be used in place of cygwin_logon_user if one so wished? If so,
> I'll go about creating a patch.

Hmm, how are you planning to do that?  Which application do you have in
mind to use that functionality, su?

Oh, btw., do you have a pointer to MS documentation which talks about
CreateProcessWithLogonW() utilizing RunAs?  I have not found a word of
that in MSDN.  Just curious.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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] 4+ messages in thread

* RE: supplement cygwin_logon_user with CreateProcessWithLogonW?
  2002-09-16  2:39 ` Corinna Vinschen
@ 2002-09-18 10:13   ` Chris January
  0 siblings, 0 replies; 4+ messages in thread
From: Chris January @ 2002-09-18 10:13 UTC (permalink / raw)
  To: cygwin

> > CreateProcessWithLogonW (as opposed to the LogonUser /
> CreateProcessAsUser)
> > combination. This is because CreateProcessWithLogonW utilises the RunAs
> > (2000)/SecondaryLogon (XP) service. Would it make sense to
> modify Cygwin so
> > this could be used in place of cygwin_logon_user if one so
> wished? If so,
> > I'll go about creating a patch.
>
> Hmm, how are you planning to do that?  Which application do you have in
> mind to use that functionality, su?
su was the main one.

>
> Oh, btw., do you have a pointer to MS documentation which talks about
> CreateProcessWithLogonW() utilizing RunAs?  I have not found a word of
> that in MSDN.  Just curious.
It's not documented - but Microsoft said this function used the RunAs
service when the RunAs pipe authentication vulnerability was discovered.
First hint: Function is in advapi32.lib, not kernel32.lib.
Second hint: No extra priveleges required.

There is also a CreateProcessWithTokenW available with .NET server.

Chris


--
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] 4+ messages in thread

end of thread, other threads:[~2002-09-18 16:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-14 15:21 supplement cygwin_logon_user with CreateProcessWithLogonW? Chris January
2002-09-14 16:55 ` Bobby McNulty Junior
2002-09-16  2:39 ` Corinna Vinschen
2002-09-18 10:13   ` Chris January

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