From owner-freebsd-questions@FreeBSD.ORG Tue Jun 27 00:37:41 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 3050016A403 for ; Tue, 27 Jun 2006 00:37:41 +0000 (UTC) (envelope-from jdow@earthlink.net) Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id C716F43D45 for ; Tue, 27 Jun 2006 00:37:40 +0000 (GMT) (envelope-from jdow@earthlink.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=a1ufxrgIQXssOWcKKQU9Mlfl+VTyZhU97R2Vc5qNEn3Mu6ASIbV3k+lJlxd0epj+; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP; Received: from [71.116.171.49] (helo=Wednesday) by elasmtp-banded.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1Fv1aF-0004A5-Gp for freebsd-questions@freebsd.org; Mon, 26 Jun 2006 20:37:40 -0400 Message-ID: <029701c69981$e501f720$0225a8c0@Wednesday> From: "jdow" To: References: Date: Mon, 26 Jun 2006 17:37:33 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-ELNK-Trace: bb89ecdb26a8f9f24d2b10475b571120209d595b9b44cb96ded9640aaa72e348bfd8ff240da8264f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 71.116.171.49 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 00:37:41 -0000 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