This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with cygwin:login

On Mon, 10 Feb 2003, lu fang wrote:

> Hi, all
> I have problem in using "login" under cygwin. I installed cygwin under
> windows2000. And when I tried to login into cygwin, I used the same
> username and paasword as I log in to my nt machine.But it always failed. So
> how to fix the problem here? I have tried to installed ntsec under NT and
> set system var CYGWIN=ntsec, and I try to log in as nt username and
> password again, still incorrect. what is the problem then? Really hope to
> get helps! thanks a lot!
> lufang


Cygwin's login is used to switch user context.  On NT, a special privilege
is needed for that.  Without that privilege, a call to switch the user
context, even to that of the current user, will fail.  By default, only
the LocalSystem user has such a privilege (thus, login can be [and is]
used by programs like telnetd and sshd).
P.S. Why would you want to switch the user context to that of the
*current* user, anyway?
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]