X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=AWL,BAYES_00,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4A1FF783.2080402@cornell.edu>
Date: Fri, 29 May 2009 10:56:03 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Upgrade to cygwin 1.7 seemed to trash bash profile, path
References: <bfc52fe00905242054n601cfbbfsca4eb8079b7d08bc@mail.gmail.com> <4A1C0ACB.1030001@cygwin.com> <COL102-W51E570990856277D297A8DB5520@phx.gbl> <bfc52fe00905272026v441245b7oacc34e46de7cb1ae@mail.gmail.com> <COL102-W5830F84488C26D8B25EDB7B5500@phx.gbl> <bfc52fe00905281437g124c1798p2689cd5a47b9806c@mail.gmail.com> <20090528230354.GD25043@ednor.casa.cgf.cx>
In-Reply-To: <20090528230354.GD25043@ednor.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 5/28/2009 7:03 PM, Christopher Faylor wrote:
> I'm not really following this discussion closely but there should not,
> by default, be any entries for /usr/lib or /usr/bin in your /etc/fstab
> file.

I've actually come across one situation where things don't work right if 
those lines are missing.  I often use 'ssh admin-user@localhost' to 
simulate 'su'.  After deleting the entry for /usr/bin from /etc/fstab, 
this produces the following:

-bash: /usr/bin/tr: No such file or directory
-bash: /usr/bin/sed: No such file or directory
$ ls /usr/bin
ls: cannot access /usr/bin: No such file or directory

The problem doesn't occur in the other direction.  In other words, if 
I'm logged in as an administrator and then do 'ssh 
non-admin-user@localhost', there's no problem.  And everything is fine 
with the entry for /usr/bin restored to /etc/fstab.

Ken

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

