delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/11/06:31:37

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
Date: Wed, 11 Sep 2002 12:31:00 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin login and passwords
Message-ID: <20020911123100.A1006@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0H29006ODE1000 AT mta6 DOT snfc21 DOT pbi DOT net> <000e01c25975$d87afe20$2050b392 AT csc DOT mrc DOT ac DOT uk>
Mime-Version: 1.0
In-Reply-To: <000e01c25975$d87afe20$2050b392@csc.mrc.ac.uk>
User-Agent: Mutt/1.3.22.1i

On Wed, Sep 11, 2002 at 10:30:19AM +0100, Chris January wrote:
> > Is changing uid's and gid's in /etc/passwd something
> > to be avoided,  since I assume these are windows assigned?
> > 
> > Need su and login to work seemlessly with windows'
> > passwords in order to allow remote logins and ssh
> > clients. Currently, login does not recognize valid
> > windows passwords.
> I have a version of su that runs on Cygwin. However I need someone to

How are you doing that?  If you're doing that by giving create
token privileges or something like that to your account, that's
not a vaild approach.

If su is using a service under SYSTEM account, that's ok.  But then
it's not needed at all since one can just use `ssh localhost' and a
running sshd to get the same.

> tell me how to coerce bash into running interactively (currently needs
> to be forced via -i flag). I'm starting bash using CreateProcess.

Login shells get their name preceeded by a dash in argv[0] from their
parent:

 -sh
 -bash

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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


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