Mail Archives: cygwin/2006/10/18/14:04:50
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 -