delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/03/09:51:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: How to start up cygwin so all users use the same home dir and environment?
Date: Thu, 3 Feb 2005 14:51:22 -0000
MIME-Version: 1.0
In-Reply-To: <A88370EDC5AB8E419D6189C7AFAA007E15C627@VESTMB204A.tdk.dk>
Message-ID: <NUTMEGtC7tXjs5FGJzi00000541@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 03 Feb 2005 14:51:22.0236 (UTC) FILETIME=[D3A9D3C0:01C509FF]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Jesper Vad Kristensen
> Sent: 03 February 2005 14:18

> I'm trying to do something odd (I'll explain the "why" later), but
> here's what I would like to do:
> 
> All users here are in the same Windows Domain, and I would like an
> unknown number of users to be able to log into this one Windows server,
> and when they start cygwin there I would like them all to use, say,
> /cygdrive/c/cygwin/home/shareduser as home dir (~/). I.e. no matter who
> logs into the windows box they all share the one and same cygwin
> environment.


  Ok, so after you've run "mkpasswd -d > /etc/passwd", edit the resulting file
and set the home directory field for every user to your chosen dir.  Bingo: all
users get same home drive, same .rc files and so on.  Only catch is that you
have to remember to re-edit the file any time you re-generate it again in the
future.  That would be quite a simple job to do with a script that pipes the
mkpasswd output through sed.

  Or set up ssh and have them all log in as the same username, regardless of
their domain logon.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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