This is the mail archive of the cygwin@cygwin.com 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

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).
	Igor
P.S. Why would you want to switch the user context to that of the
*current* user, anyway?
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,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:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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