delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4A882963.8010404@agora-net.com> |
References: | <4A7EE547 DOT 1070309 AT agora-net DOT com> <4A7F9E88 DOT 2060800 AT cygwin DOT com> <4A859905 DOT 9060206 AT agora-net DOT com> <20090814173519 DOT GB10200 AT ednor DOT casa DOT cgf DOT cx> <4A882621 DOT 90104 AT agora-net DOT com> <4A882963 DOT 8010404 AT agora-net DOT com> |
Date: | Sun, 16 Aug 2009 12:46:33 -0400 |
Message-ID: | <f60fe000908160946q5dfe127fid88536bd73e1304a@mail.gmail.com> |
Subject: | Re: No etc/passwd (was) Re: (everything!) command not found |
From: | "Mark J. Reed" <markjreed AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
No /etc/passwd file at all? You're looking from bash, not from Windows, right? From Windows it'd be C:\Cygwin\etc\passwd... This sounds like something went wrong during the installation. You can generate the default passwd file like so: mkpasswd -l >/etc/passwd But if your prompt is "c:\cygwin" then that sounds like you're not in bash at all, but still in the Windows shell (cmd.exe or command.com). On Sun, Aug 16, 2009 at 11:44 AM, DY wrote: > Or maybe the problem is the profile. OK, totally different. The password file identifies the users who exist on the system and the location of their home directory. The profile is a set of bash commands to run automatically when you log in. The only connection is that your home directory is used to find your personal profile files. > After a bit of searching, I found the profile in /etc/defaults/etc, > but I don't know how to edit it properly to make the above happen. /etc/defaults/etc/profile is not used by anything; that's just a copy of the default file that goes into /etc/profile. What actually gets run is /etc/profile. But the way to set things up for your account is to make a .profile (or .bash_profile, if you'll always be using bash) in your home directory. To set the prompt you need to set the PS1 variable. But again, make sure you're actually running bash! -- Mark J. Reed <markjreed AT gmail DOT com> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |