public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Modification to setup2.sgml
@ 2001-02-16 10:13 Eric M. Monsler
  2001-02-16 13:03 ` Christopher Faylor
  0 siblings, 1 reply; 2+ messages in thread
From: Eric M. Monsler @ 2001-02-16 10:13 UTC (permalink / raw)
  To: cygwin

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
--- setup2.sgml	Mon Nov 20 11:44:05 2000
+++ EMM_setup2.sgml	Wed Feb  7 09:39:37 2001
@@ -83,8 +83,7 @@
 <para> Under Windows NT, if you want to create 
 <filename>/etc/passwd</filename> and <filename>/etc/group</filename> 
 (i.e. so that <command>whoami</command> works and 
-<command>ls -l</command> replaces the UID with a name) just
-do this:
+<command>ls -l</command> replaces the UID with a name) based on the accounts local to the machine, just do this:
 </para>
 
 <screen>
@@ -93,7 +92,30 @@
 <prompt>/etc$</prompt> <userinput>mkgroup -l > /etc/group</userinput>
 </screen>
 
-<para> Future changes to your NT registry will NOT be reflected in
+<para>If you are logging in based on an NT network domain, and want to
+also create entries in <filename>/etc/passwd</filename> and
+<filename>/etc/group</filename> based on all the accounts in the
+domain, then after creating local entries do this:
+</para>
+
+<screen>
+<prompt>/$</prompt> <userinput>cd /etc</userinput>
+<prompt>/etc$</prompt> <userinput>mkpasswd -d >> /etc/passwd</userinput>
+<prompt>/etc$</prompt> <userinput>mkgroup -d >> /etc/group</userinput>
+</screen>
+
+<para>Alternatively, to add only your account to the passwd file,
+assuming your NT name is "my_ntusername", instead of the above
+<command>mkpasswd</command> you should do:
+</para>
+ 
+<screen>
+<prompt>/$</prompt> <userinput>cd /etc</userinput>
+<prompt>/etc$</prompt> <userinput>mkpasswd -d | grep my_ntusername >> /etc/passwd</userinput>
+</screen>
+
+
+<para> Future changes to your NT registry or network domain will NOT be reflected in
 <filename>/etc/passwd</filename> or <filename>/etc/group </filename> 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.  </para>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Modification to setup2.sgml
  2001-02-16 10:13 Modification to setup2.sgml Eric M. Monsler
@ 2001-02-16 13:03 ` Christopher Faylor
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Faylor @ 2001-02-16 13:03 UTC (permalink / raw)
  To: cygwin

On Fri, Feb 16, 2001 at 10:14:54AM -0800, Eric M. Monsler wrote:
>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

Doh.  I carefully checked to see if these changes were in setup2.sgml
and somehow missed the fact that they were already there.  I'd asked DJ
to check them in.

I'm sorry for making you go to the extra work of producing YA diff.

Thanks for your contribution.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-16 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-16 10:13 Modification to setup2.sgml Eric M. Monsler
2001-02-16 13:03 ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).