delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/13/11:16:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVauW0IZ3H6oYDFRKSTFDhYcNGcRdZMfpd3ufDbMpH2bTM73uK4MVj6E
Message-ID: <3EE9EA67.1050509@cygwin.com>
Date: Fri, 13 Jun 2003 11:14:47 -0400
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030529
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dima Chubarov <chubarik AT gorodok DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: 1.3.22 login problem
References: <000501c331b8$906a87b0$ccf37cc1 AT ict DOT nsc DOT ru>
In-Reply-To: <000501c331b8$906a87b0$ccf37cc1@ict.nsc.ru>

Dima Chubarov wrote:

> Hello,
> 
> login always fails with my cygwin installation on Win2000.
> 
> I have checked the mailing lists and found the following letter by Corinna
> Vinschen (in reply to Mark Calder):
> 
> Mark Calder> When I use the login command I get "login
> Mark Calder> incorrect".
> 
> Corinna Vinschen> You cannot change user context on
> Corinna Vinschen> NT/W2K if your account
> Corinna Vinschen> has not explicitely set several user
> Corinna Vinschen> rights. Even administrator
> Corinna Vinschen> doesn't have all these user rights. Corinna Vinschen>
> These rights are
> Corinna Vinschen>
> Corinna Vinschen>  "Act as part of the operating system"
> Corinna Vinschen>  "Replace process level token"
> Corinna Vinschen>  "Increase quotas"
> Corinna Vinschen>
> ....
> 
> Even when these are set for my group (there is still a possibility that I
> did not get the Russian translation right) login fails. And I need login to
> run inetd.
> 
> My typical BASH session looks like
> 
>  bash-2.05b$ export CYGWIN=ntsec
>  bash-2.05b$ login root
>  Password:
>  Login incorrect
>  login:
>  bash-2.05b$ mkpasswd -lu root
>  root:unused_by_nt/2000/xp:1002:513:
>     Основатель,U-LAB22-3\root,
>     S-1-5-21-789336058-920026266-1708537768-
>     1002:/home/root:/bin/bash
> 

Is there a reason not to just run inetd as a service as the documentation
suggests?

The above permissions need to be added to the account from which 'login'
will run, not the target account to be logged into.  You'll need to add
the specified permissions to the account you will issue 'login' from.
I'm guessing from the information you provided above that this account
is not 'root'.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright ╘ 2019   by DJ Delorie     Updated Jul 2019