delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/18/14:04:50

X-Spam-Check-By: sourceware.org
Message-ID: <BAY125-F232FB52045A8F7F375D9C1B50F0@phx.gbl>
X-Sender: karlm30 AT hotmail DOT com
In-Reply-To: <453645DD.6020408@cygwin.com>
From: "Karl M" <karlm30 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Installing Cygwin on XP laptop part of a domain
Date: Wed, 18 Oct 2006 11:04:26 -0700
Mime-Version: 1.0
X-IsSubscribed: yes
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

Hi All...

Here is what I use (excerpt from a script) to see it on the screen and 
update it.

echo
echo Setting up /etc/group
echo
mkgroup -l | tee /etc/group
mkgroup -d -g 'Domain Users' | tee -a /etc/group

echo
echo Setting up /etc/passwd
echo
mkpasswd -l | tee /etc/passwd
mkpasswd -d -p /home -u "$(id -un)" | tee -a /etc/passwd

For additional users, repeat the last line with each username instead of 
"$(id -un)".

For additional groups, repeat the  last mkgroup line for each group. For 
small domains, you can include everything, but for a large domain (as I am 
in) I only reference what I need.

HTH,

...Karl


>From: "Larry Hall (Cygwin)" Subject: Re: Installing Cygwin on XP laptop 
>part of a domain
>Date: Wed, 18 Oct 2006 11:18:53 -0400
>
>Billinghurst, David (CALCRTS) wrote:
>>>From: Jay NYC
>>>
>>>Can someone who has experience installing Cygwin on a WinXP desktop part 
>>>of a  Windows Domain let me know what to do?
>>
>>You need to create /etc/passwd and /etc/group files using mkpasswd and 
>>mkgroup.
>>
>>The domain I am in has around 3000 groups and lots of users.
>>Enumerating all the users takes a while.
>>
>>All I need to do is (something like):
>>
>>mkgroup > /etc/group
>>mkpasswd -l > /etc/passwd
>>mkpasswd -d -u my_username >> /etc/passwd
>>
>>The first mkpasswd adds the local accounts and the second invocation adds 
>>my domain account.   mkpasswd --help for
>>more details.
>>
>>Then edit /etc/passwd and change your home directory a local
>>path - perhaps /home/username.
>
>
>There's a flag for 'mkpasswd' that let's you specify the home
>directory you want directly.  Sorry, don't recall what it is
>off-hand and don't have access to it to look right now.
>
>
>
>--
>Larry Hall                              http://www.rfk.com
>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>216 Dalton Rd.                          (508) 893-9889 - FAX
>Holliston, MA 01746
>
>--
>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/
>

_________________________________________________________________
Add a Yahoo! contact to Windows Live Messenger for a chance to win a free 
trip! 
http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline


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