delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/16/12:56:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_32,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A883A2A.4050706@agora-net.com>
Date: Sun, 16 Aug 2009 12:56:10 -0400
From: DY <yarringt AT agora-net DOT com>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: "Mark J. Reed" <markjreed AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: No etc/passwd (was) Re: (everything!) command not found
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> <f60fe000908160946q5dfe127fid88536bd73e1304a AT mail DOT gmail DOT com>
In-Reply-To: <f60fe000908160946q5dfe127fid88536bd73e1304a@mail.gmail.com>
X-SA-Exim-Connect-IP: 76.99.185.129
X-SA-Exim-Mail-From: yarringt AT agora-net DOT com
X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

in cygwin, if I go to /etc there is no passwd.  I'm definitely in cygwin. 
My prompt is bash-3.2$
Oh, and there's no profile in /etc either.  (or a .bash_profile, for 
that matter). 
Should that have been created automatically?

So it's pretty clear I did something fundamentally wrong in setup?  Any 
idea what?
I basically went to the cygwin page, picked "install now", downloaded 
setup.exe,
right-clicked on it and chose "run as administrator", then ran it, 
picked to install perl,
python, devel, the vim editor, and x11, and then let'er rip.   I tried 
it without running
as administrator, but that didn't work any better and left me with all 
the files being
read only. 

Thanks!!!
-Debra

Mark J. Reed wrote:
> 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!
>
>
>   

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019