delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/29/10:56:20

X-Recipient: archive-cygwin AT delorie DOT 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 AT cornell DOT edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Upgrade to cygwin 1.7 seemed to trash bash profile, path
References: <bfc52fe00905242054n601cfbbfsca4eb8079b7d08bc AT mail DOT gmail DOT com> <4A1C0ACB DOT 1030001 AT cygwin DOT com> <COL102-W51E570990856277D297A8DB5520 AT phx DOT gbl> <bfc52fe00905272026v441245b7oacc34e46de7cb1ae AT mail DOT gmail DOT com> <COL102-W5830F84488C26D8B25EDB7B5500 AT phx DOT gbl> <bfc52fe00905281437g124c1798p2689cd5a47b9806c AT mail DOT gmail DOT com> <20090528230354 DOT GD25043 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20090528230354.GD25043@ednor.casa.cgf.cx>
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

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

- Raw text -


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