www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4450FAC0.5080506@gtri.gatech.edu> |
Date: | Thu, 27 Apr 2006 13:09:20 -0400 |
From: | Webb Roberts <webb DOT roberts AT gtri DOT gatech DOT edu> |
User-Agent: | Thunderbird 1.5.0.2 (Windows/20060308) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Error on /bin/sh -login: "cannot remove /bin/sh.exe: Permission denied" |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
I just updated my cygwin install. on running /bin/sh -login, I got the following message: /bin/cp: cannot remove `/bin/sh.exe': Permission denied Looks like the error is coming out of /etc/profile.d/00bash.sh: the part where it's trying to update /bin/sh.exe via a copy in the midst of running profiles: /bin/cp -fpuv /bin/bash.exe /bin/sh.exe 2>&1 >> /var/log/setup.log.full 1. Isn't it a little strange to have this done on user time every time users run profiles? 2. If the redirect and the file append were reversed, I'd never see the error; it would go straight to the logs. As it is, nothing goes to the logs. 3. Once I killed all my /bin/sh processes, and ran /bin/bash -login, the copyover happened OK. I'm just a freak trying to stick to sh. 4. Should this code be running when I'm under /bin/sh? Looks like it's bash-specific; I'd expect the default profile code for sh to be sh-specific. Thanks! Webb -- Webb Roberts (webb DOT roberts AT gtri DOT gatech DOT edu) Research Scientist, Georgia Tech Research Institute Atlanta, GA (404)407-6181 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |