delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/28/12:48:35

From: jsc AT ppe DOT bb-data DOT de (Jerzy Schubert)
Subject: Re: login.c
28 Jul 1997 12:48:35 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.LNX.3.95.970728174606.1643A-100000.cygnus.gnu-win32@crusher.ppe.bb-data.de>
Mime-Version: 1.0
Original-To: Bilbo Baggins <bilbo AT ameritech DOT net>
Original-cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <Pine.LNX.3.95.970728040630.1944C-100000@hobbit1.shire.net>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I inserted
GetLastError() after LogonUser in login.c
then ran login from the dos box 
and it returned 1314
then help netmgsg 1314 said something like
client  has  not sufficent priviledges.

I've checked msdn LogonUser info and it said something about
SE_TCB_NAME privilege process must have. TCB stand for trusted computer
based or whatever.

With User Manager i gave the starting account several priviledges
for LogonUser is prviledge "part of the operating system" or similar
perhaps sufficient but then for starting process as a user others
are probably also necessary anyway.

then REBOOT the machine or nothing happens.

after that i passed LogonUser,

then i had messages 

: no such file or directory

it was beacouse /etc/passwd, had \r\n 

after that it finaly works

Thanks very much for the help  Bilbo,
and  especially  Sergej.


On Mon, 28 Jul 1997, Bilbo Baggins wrote:

> 
> trying to compile the login.c file from Sergey's home page
> and got:
> 
> ... undefined reference to 'LoginUserA AT 24'
> 
> quick grep of the libs show that this is defined in
> libadvapi32.a
> 
> but however when i run login.exe it keeps giving me: 'Login incorrect'
> for any valid user/password combination
> 
> ideas/suggestions?
> 
> 
> TIA
> 
> 
> 
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
> 

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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