From owner-freebsd-questions@FreeBSD.ORG Tue Jun 27 01:29:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91DD816A5B4 for ; Tue, 27 Jun 2006 01:29:35 +0000 (UTC) (envelope-from micahjon@ywave.com) Received: from relay2.av-mx.com (relay2.av-mx.com [137.118.16.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27D8743F45 for ; Tue, 27 Jun 2006 00:58:31 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.61] (HELO mx0.av-mx.com) by relay2.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 314368420 for freebsd-questions@freebsd.org; Mon, 26 Jun 2006 20:58:29 -0400 Received: (qmail 23305 invoked from network); 27 Jun 2006 00:58:29 -0000 Received: from dsl20226.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.107.226) by 0 with SMTP; 27 Jun 2006 00:58:29 -0000 X-CLIENT-IP: 216.227.107.226 X-CLIENT-HOST: dsl20226.ywave.com Message-ID: <44A082B3.4060804@ywave.com> Date: Mon, 26 Jun 2006 17:58:27 -0700 From: Micah User-Agent: Thunderbird 1.5.0.4 (X11/20060611) MIME-Version: 1.0 To: jdow References: <029701c69981$e501f720$0225a8c0@Wednesday> In-Reply-To: <029701c69981$e501f720$0225a8c0@Wednesday> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, vveitas@erc.lt Subject: Re: /bin/cat: Permission denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 01:29:35 -0000 jdow wrote: > From: "Viktoras Veitas" > >> Hello. >> >> I suddenly cannot run "cat" command as /bin/cat file appears to be >> without >> execute permissions (all other files in /bin directory are with them) >> and I >> get "/bin/cat: Permission denied" error. >> >> >> >> I had a misfortune to "chmod 555 /bin/cat", then my machine panicked >> (when >> trying to run "cat") and was not able to boot until I changed the >> /bin/cat >> permissions back to read-only. Anyway the system running again but I >> cannot >> install almost any port that uses cat in ./configure script. >> >> >> >> I am running FreeBSD 5.4-RELEASE-p16 on Intel(R) Pentium(R) 4 CPU 3.00GHz >> (2992.52-MHz 686-class CPU), with two 200GB SATA disks and RAID1 geom >> mirror. >> >> >> >> Output of dmesg is attached as file. >> >> >> >> Question#1: How can I get rid of this problem and repair my cat file >> to be >> able to install new ports again? >> >> Question#2: Why did this happen? I mean everything worked fine for a >> year or >> more until I decided to use hylafax on my machine and found that it >> cannot >> do documet conversion. > > Maybe some kind soul you trust will send you a copy of the 5.4 cat > command. I'd suspect you redirected something to /bin/cat by mistake. > > {^_^} Joanne Cat for i386 5.4 release can also be gotten from ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.4-RELEASE/base/base.aa just use tar to extract it. HTH, Micah