Mail Archives: cygwin/2002/10/01/04:22:00
Hallo !
This has been discussed some time ago, but anyway:
On Tue, 1 Oct 2002, valcauda Stéphane wrote:
> When I try "login " command with any of my windows NT account / password,
> it doesn't work.
> even after MkPasswd.
>
> Is it a problem of passwd or something else ?
> I read the FAQ on SU problem, but I don't find answers to solve this login
> problem.
If there is no SU, then Login cant work either, because both, SU
and login, do basicly the same thing:
They create a (unprivileged) session, comeing from an privileged
execution-environment (typical "root" on unix-systems) by setting
usercontext (using there "root"-privileges to do so).
One difference between SU and Login is, that Login is run by a
root-process (init) and SU carries the "root"-privileges in its
file-attributes (the "s"-bit).
Under NT, there is no such thing like a "s"-bit (s == (S)et User).
That is, why SU does not work. The SU-binary cant get
"root"-privilegies (under NT: == running as "SYSTEM")
Same for Login on the command-line:
Only SYSTEM under NT (or "root" under unix) may change
user-context. A "Login" invoked on the command-line does not
run as "SYSTEM" (under NT), therefor cant change usercontext.
In short:
If you have to login to different accounts, setup ssh, running
the sshd under SYSTEM (the only account, that *can* change
usercontext) and login to your box via ssh (ssh someuser AT localhost).
See the ssh-documentation under /usr/doc/Cygwin in your
Cygwin-installation for deatils on ssh.
Have fun
Bjoern Kahl
P.S.: Can this be included in the FAQ?
:-) After english proof-reading :-)
--
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de |
+---------------------------------------------------------------------+
--
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/
- Raw text -