Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C868DD7.7030005@cportcorp.com> Date: Wed, 06 Mar 2002 16:44:55 -0500 From: Peter Buckley User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Barry Goldstein CC: cygwin AT cygwin DOT com Subject: Re: Prompt question References: <3 DOT 0 DOT 5 DOT 32 DOT 20020306154226 DOT 0097c7b0 AT pop DOT shore DOT net> <3 DOT 0 DOT 5 DOT 32 DOT 20020306160958 DOT 00970800 AT pop DOT shore DOT net> <3 DOT 0 DOT 5 DOT 32 DOT 20020306163817 DOT 00972650 AT pop DOT shore DOT net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Aha. Sounds like it might be a problem with the space in the name. I am not sure how to work around that with mkpasswd. But you could probably do a "mkpasswd -l >> /etc/passwd" (I didn't realize you weren't in a domain environment). You can also try Corinna's suggestion about "mkpasswd -u "Barry Goldstein" >> /etc/passwd", or maybe "mkpasswd -u Barry\ Goldstein >> /etc/passwd". Note that the space needs to be quoted. About the colors, are you checking off "modify the shortcut which started this window"? It sounds like you are only modifying the one window, and so the next command window has the same bad colors. HTH, Peter Barry Goldstein wrote: > At 04:17 PM 3/6/2002 -0500, Peter Buckley wrote: > >>Hmm... I thought that when cygwin was installed, it did "mkpasswd -l >> >>/etc/passwd", so there was at least something in /etc/passwd. Do you in >>fact have a file in c:\cygwin\bin named mkpasswd.exe? >> >>It actually should just sit there for a long time when you do "mkpasswd >>-d >> /etc/passwd". It is adding all the users from the NT domain to the >>passwd file. You can do a "mkpasswd -d | grep bgoldstein >> >>/etc/passwd", that will take the same amount of time but only put your >>username in the passwd file (where bgoldstein is your username). >> >>HTH, >>Peter >> > > Thanks -- yes, there is a mkpasswd.exe in bin. > > I did mkpasswd -d >&mkpasswd.txt and got the following > Everyone:*:0:0:,S-1-1-0:: > SYSTEM:*:18:18:,S-1-5-18:: > Administrators:*:544:544:,S-1-5-32-544:: > mkpasswd: error 2453 > > My machine is not on a LAN (just a cable modem to my ISP). I log on to NT > as "Barry Goldstein", with full administrator privileges. Maybe the space > in the name is causing the error? > > My cygwin home directory is /usr/bag, FWIW. > > I just tried mkpasswd -d >> /etc/passwd and the first three lines above are > indeed in the file, but I still have no name. > > It's not worth a lot of hassle, but I'm going to wrestle with the PS[0-9] > environment vars which set the prompt (and are also, I think, responsible > for the lousy colors (even if I change them with the NT box properties, > they go right back to lousy at a new prompt). > > Thanks. > > BG > > > == > Barry Goldstein Pequod Software > 124 Otis Street bag AT shore DOT net > Newtonville, MA 02460-1846 +1-617-332-5758 (home) > U.S.A. +1-509-756-7445 (fax) > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/