X-Spam-Check-By: sourceware.org Date: Tue, 25 Jul 2006 12:04:22 +0200 From: Corinna Vinschen 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: <20060725100422.GJ11991@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20060725020921 DOT 2296 DOT qmail AT web56806 DOT mail DOT re3 DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060725020921.2296.qmail@web56806.mail.re3.yahoo.com> User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 24 19:09, Keith Christian wrote: > Suppose a Windows 2000/XP/2003 machine exists where three accounts need to be > added for use only with SSH to a Unix/Linux machine, for ssh/scp/sftp use. > > Further suppose these user accounts are to be named ssh_user_a, ssh_user_b, > and ssh_user_c, and that these should exist only in Cygwin's /etc/passwd file > - they won't be added as local Windows users. 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. 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/