Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A8D6E1E.6212FFE5@beamreachnetworks.com> Date: Fri, 16 Feb 2001 10:14:54 -0800 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Modification to setup2.sgml Content-Type: multipart/mixed; boundary="------------D4B5658E6B57A35231CBB520" --------------D4B5658E6B57A35231CBB520 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, Last week I posted a diff to setup2.sgml, based upon discussions in the archive of using "mkpasswd -d" in addition to "mkpasswd -l" in setting up the proper UID, etc., in the /etc/passwd file. I had done a straight diff >file, rather than diff -u > file. Here is the result of: diff -u setup2.sgml EMM_setup2.sgml >setup2.sgml.diff Eric M. Monsler --------------D4B5658E6B57A35231CBB520 Content-Type: text/plain; charset=us-ascii; name="setup2.sgml.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="setup2.sgml.diff" --- setup2.sgml Mon Nov 20 11:44:05 2000 +++ EMM_setup2.sgml Wed Feb 7 09:39:37 2001 @@ -83,8 +83,7 @@ Under Windows NT, if you want to create /etc/passwd and /etc/group (i.e. so that whoami works and -ls -l replaces the UID with a name) just -do this: +ls -l replaces the UID with a name) based on the accounts local to the machine, just do this: @@ -93,7 +92,30 @@ /etc$ mkgroup -l > /etc/group - Future changes to your NT registry will NOT be reflected in +If you are logging in based on an NT network domain, and want to +also create entries in /etc/passwd and +/etc/group based on all the accounts in the +domain, then after creating local entries do this: + + + +/$ cd /etc +/etc$ mkpasswd -d >> /etc/passwd +/etc$ mkgroup -d >> /etc/group + + +Alternatively, to add only your account to the passwd file, +assuming your NT name is "my_ntusername", instead of the above +mkpasswd you should do: + + + +/$ cd /etc +/etc$ mkpasswd -d | grep my_ntusername >> /etc/passwd + + + + Future changes to your NT registry or network domain will NOT be reflected in /etc/passwd or /etc/group after this so you may want to regenerate these files periodically. Under Windows 9x, you can create and edit these files with a text editor. --------------D4B5658E6B57A35231CBB520 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple --------------D4B5658E6B57A35231CBB520--