public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Pierre A. Humblet" <pierre.humblet@ieee.org>
To: cygwin@cygwin.com
Subject: Re: unable to autologin to 2003
Date: Fri, 27 Jun 2003 10:25:00 -0000	[thread overview]
Message-ID: <20030627102653.GA514627@Worldnet> (raw)
In-Reply-To: <01bc01c33c31$27732ef0$4d1f1cac@THEODOLITE>

On Thu, Jun 26, 2003 at 03:20:30PM -0700, Bruce Dobrin wrote:
> I hope this isn't a stupid question.  I configure cygwin with a script which
> installs all passwd,  hosts.equiv, inetd etc.....  I have hundreds of
> machines configured this way on which all is well.  I just installed 2003
> server,  cygwin, and ran the autoconfig script.  I am unable to rsh to this
> machine.  I get:
> 
> dobrin@srdalien2:/home/dobrin> rlogin srdalien2
> Switching to user dobrin failed!
> rlogin: connection closed.
> 
> or
> 
> dobrin@srdalien2:/home/dobrin> rlogin srdalien2 -l dobrin
> Switching to user dobrin failed!
> rlogin: connection closed.
> 
> 
> cygwin settingis :
> dobrin@srdalien2:/home/dobrin> echo $CYGWIN
> binmode tty ntsec
> 
> Is there a known 2003 server issue,  I searched the mailing lists pretty
> carefully,  but sisn't turn up anything.
> 
> telnet and non interactive rsh (rather than  rlogin),  work fine.
> 
> 
> Bruce Dobrin
> dobrin@imageworks.com
 
There is evidence that password-less logins (as well as exim) fail
on Windows 2003 because the SYSTEM account is lacking the CreateToken
privilege and can't setuid(). I don't know if/how that privilege can be 
added, can you investigate?

A workaround (reported to work) is to create a new privileged account and 
to run the daemons under that account (-u switch in cygrunsrv).
The new account (you could call it Root) should
1) be in the Administrators group
2) have the Login As A Service privilege
3)   "      Create Token       "
4)   "      Assign Token       "
5)   "      Increase Quota     "    (if it exists on your system. Does it?).
In addition by being Administrators it should also have the Backup and 
Restore Files privileges. If not, assign them explicitly.
Rebuild /etc/passwd after creating such an account.

Pierre
 

--
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/

  parent reply	other threads:[~2003-06-27  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-10  0:21 problem with telnet, xinetd, native console apps David Byron
2003-06-27  1:33 ` unable to autologin to 2003 Bruce Dobrin
2003-06-27  2:40   ` Elfyn McBratney
2003-06-27 10:25   ` Pierre A. Humblet [this message]
2003-06-30 12:56     ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030627102653.GA514627@Worldnet \
    --to=pierre.humblet@ieee.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).