delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/03/10:33:00

X-Spam-Check-By: sourceware.org
Date: Thu, 3 May 2007 10:32:37 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Boffin, Stephane (GE Infra, Aviation, Non-GE)" <stephane DOT boffin AT ge DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: Cygwin username
In-Reply-To: <B7CF78F602FEE04E8FDC10012A2F5D4AB5EBC6@CINMLVEM12.e2k.ad.ge.com>
Message-ID: <Pine.GSO.4.63.0705031029450.12789@access1.cims.nyu.edu>
References: <B7CF78F602FEE04E8FDC10012A2F5D4AB5EBC6 AT CINMLVEM12 DOT e2k DOT ad DOT ge DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Ugh, top-posting...  Reformatted.

On Thu, 3 May 2007, Boffin, Stephane (GE Infra, Aviation, Non-GE) wrote:

> -----Original Message-----
> From: Igor Peshansky [mailto:pechtcha AT XX DOT XXX DOT XXX]
> Sent: 3 mai 2007 10:18
> To: Boffin, Stephane (GE Infra, Aviation, Non-GE)
> Cc: cygwin AT XXXXXX DOT XXX

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> Subject: Re: Cygwin username
>
> > On Thu, 3 May 2007, Boffin, Stephane (GE Infra, Aviation, Non-GE) wrote:
> >
> > > Hello all,
> > >
> > > When you log into cygwin using a shell the username used is the
> > > windows user name. I have a setup where I would like 10 users from
> > > 10 diffrent PC to have one username and 10 other using 10 other pc
> > > have an other.
> > >
> > > This is because I only want to manage 2 user name in the passwd file.
> > >
> > > Is this possible ?
> > > And if yes how do I do that
> >
> > I don't believe it's possible.  First off, entries in /etc/passwd
> > contain an SID that identifies the associated Windows user, so you'd
> > need to have one entry per Windows user anyway, or they will be
> > unrecognized by Cygwin.
> >
> > You can have multiple entries in /etc/passwd with the same username, but
> > when Cygwin looks up a username, it stops at the first one, so anyone
> > trying to log in with that username will be treated as the first
> > matching user (and will need to enter the password for that user).
> >
> > On the other hand, you can use the mkpasswd tool to manage your
> > /etc/passwd file instead of doing it by hand.
> > 	Igor
>
> I do not want to use the mkpasswd because I have 500 user on the network
> and only 6 - 10 will be using Cygwin.

Then take a look at the "-u" option to mkpasswd, and write a script to
only grab the users you want.  Similarly for mkgroup (with "-g").

> I tried to put only on entry in the /etc/passwd and cygwin uses this
> user name but I do not know if this is a bug or a feature.
> I would of expected cygwin to send a authentication error ...???

Huh?  You'll need to expand on this.  What do you mean by "cygwin uses
this user name"?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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