login winXP home edition

pbs pnews@tiscali.co.uk
Tue Oct 2 17:12:00 GMT 2007

I am trying to get xdmcp to work on a winXP home edition machine. But
there are several issues that are cropping up. One of them can be
simplified by looking at problems with "login" from the command line prompt.

I have a number of Cygwin users and I have messed around with the
/etc/passwd file. The machine has a user called admin -- because the
administrator user does not seem to be available under XP home edition
other than in recovery mode etc.

Admin has administrator rights on the machine and I have altered the uid
to 0 in the /etc/passwd, so that it is root under Cygwin.

If I run login on the command from a bash command line prompt it works
for "login admin" and comes back with a "Last login:..." and "#",  but
for any other user it returns with
	Last login:..
	Login: no shell: /bin/bash: Permission denied
and looking at the log file I see the reason for the failure is
	CreateProcess failed, Win32 error 1314

Which is "A required privilege is not held by the client.

I see from this posting "Re: "incorrect password" or "permission denied"
when switching users"
(http://cygwin.com/ml/cygwin/2004-02/msg00649.html) an explanation for
this behaviour. Including reading the
/usr/share/doc/Cygwin/openssh.README (which is not on my machine but was
available from http://pigtail.net/LRP/printsrv/openssh.README.txt

Also  "Re: cygwin_logon_user() not working"

I have tried putting admin and the other user into the same group in
/etc/passwd (including SYSTEM group).

I have tried making the second user (lets call it USER2) admin in the
Windows XP Control panel->User Accounts, but that does not work either.

I have tried to log on Administrator but can not do so other than in
safe mode. http://support.microsoft.com/kb/290109/EN-US/

I also saw this "logon as a service for XP home edition"
Which suggests using ntrights which led me to "How to Set Logon User
Rights with the Ntrights.exe Utility"

This tool is available in rktooks "Windows Server 2003 Resource Kit

But before I alter the group permissions at the windows OS level with
ntrights, I would like some advise on what I am doing because as an old
UNIX and VMS hacker I understand the concepts in principle but I do not
want to drive a coach and horses through Microsoft's attempts to protect
the system for what is basically an application level problem.

So any advice (or a URL to such advise) on how to set up a WinXP home
edition, to allow a Cygwin root user to use the login program to login
as another user would be appreciated. Regards pbs

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list