delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/25/09:48:10

X-Spam-Check-By: sourceware.org
Date: Tue, 25 Jul 2006 15:47:35 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Adding users to /etc/passwd for ssh purposes, but not as a local Windows user
Message-ID: <20060725134735.GK11991@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060725100422 DOT GJ11991 AT calimero DOT vinschen DOT de> <20060725132159 DOT 85212 DOT qmail AT web56812 DOT mail DOT re3 DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20060725132159.85212.qmail@web56812.mail.re3.yahoo.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On Jul 25 06:21, Keith Christian wrote:
> --- Corinna Vinschen <XXXXXXX-XXXXXX AT XXXXXX DOT XXX> wrote:



http://cygwin.com/acronyms/#PCYMTNQREAIYR




> > Nope.  Every account in /etc/passwd needs a real account in Windows,
> > given as SID in the pw_gecos field.  Cygwin has no own user management
> > but relies on Windows' user management.
> > 
> > What you can do is to create (or choose an existing) single account in
> > Windows, create three entries for this user in /etc/passwd, edit
> > /etc/passwd to give these three accounts different names and different
> > Cygwin uids, but let them all still refer to this single Windows
> > account.  And then expect weirdnesses.  For instance, the files created
> > by any of these accounts will of course be owned by the underlying
> > Windows account.  An `ls -l' will always show the files being owned by
> > the user entry showing up first in /etc/passwd.  They are simply only
> > one account actually, whatever you fake in /etc/passwd.
> 
> Hi Corinna,
> 
> Thanks for the explanation.  Last evening, the sequence below allowed the
> creation of an alternate user.  Assume "kchristian" as an existing Windows
> user and "keith" as the new Cygwin user.
> 
> 1. As superuser: vi /etc/passwd
> 
> 2. Duplicate an existing Windows user (in my case, "kchristian" user via
> "yyp."
> 
> 2. Change the UID from X to X+1:    :s/X/X+1/g
> 
> 3. mkdir /home/keith
> 
> 4. chmod -R keith:None /home/keith
> 
> 5. passwd keith

As I explained above, this is still the Windows user kchristian.  So I
assume you know now that you changed the password for the Windows user
kchristian.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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