From owner-freebsd-questions@FreeBSD.ORG Mon Jun 26 22:43:32 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 C158A16A405 for ; Mon, 26 Jun 2006 22:43:32 +0000 (UTC) (envelope-from vveitas@erc.lt) Received: from neptunas.balt.net (vilnius.balt.net [195.14.170.14]) by mx1.FreeBSD.org (Postfix) with SMTP id 2386D43D96 for ; Mon, 26 Jun 2006 22:43:08 +0000 (GMT) (envelope-from vveitas@erc.lt) Received: (qmail 17330 invoked from network); 27 Jun 2006 01:19:35 +0300 Received: from unknown (HELO hpnc6000) (195.14.188.26) by neptunas.balt.net with SMTP; 27 Jun 2006 01:19:35 +0300 From: "Viktoras Veitas" To: Date: Tue, 27 Jun 2006 01:43:07 +0300 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0008_01C6998B.09FC9590" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaZcePx6bHZC/ekQe22GrMMThNOsg== X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: /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: Mon, 26 Jun 2006 22:43:32 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C6998B.09FC9590 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. Thank you. Viktoras ------=_NextPart_000_0008_01C6998B.09FC9590 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dmesg.txt" Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD 5.4-RELEASE-p16 #5: Tue Jun 27 02:55:28 EEST 2006 vveitas@hq.erc.lt:/usr/obj/usr/src/sys/GENERIC ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.52-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0xf41 Stepping =3D 1 = Features=3D0xbfebfbff Hyperthreading: 2 logical CPUs real memory =3D 1072562176 (1022 MB) avail memory =3D 1040007168 (991 MB) ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 3.0 on pci0 pci1: on pcib1 em0: port = 0xa000-0xa01f mem 0xf1000000-0xf101ffff,0xf1020000-0xf103ffff irq 18 at device 1.0 on = pci1 em0: Ethernet address: 00:11:2f:16:40:43 em0: Speed:N/A Duplex:N/A pcib2: at device 28.0 on pci0 pci2: on pcib2 pci2: at device 8.0 (no driver attached) uhci0: port 0xc400-0xc41f irq 16 at = device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xc000-0xc01f irq 19 at = device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: at device 29.4 (no driver attached) pci0: at device 29.5 (no driver = attached ) pci0: at device 29.7 (no driver attached) pcib3: at device 30.0 on pci0 pci3: on pcib3 em1: port = 0xb000-0xb03f mem 0xf4020000-0xf403ffff,0xf4000000-0xf401ffff irq 18 at device 8.0 on = pci3 em1: Ethernet address: 00:11:2f:16:40:44 em1: Speed:N/A Duplex:N/A pci3: at device 9.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port = 0xf000-0xf00f,0x376,0x170-0x177 ,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 atapci1: port = 0xd800-0xd80f,0xd400-0xd403,0xd 000-0xd007,0xcc00-0xcc03,0xc800-0xc807 irq 18 at device 31.2 on pci0 ata2: channel #0 on atapci1 ata3: channel #1 on atapci1 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on = acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on = acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x778-0x77b,0x378-0x37f irq = 7 on acp i0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 orm0: at iomem 0xc0000-0xc7fff on isa0 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on = isa0 Timecounter "TSC" frequency 2992518120 Hz quality 800 Timecounters tick every 10.000 msec ata0-master: FAILURE - ATA_IDENTIFY = status=3D7f = error=3D7f LBA=3D0 ata0-master: FAILURE - ATA_IDENTIFY = status=3D7f = error=3D7f LBA=3D0 ata0-master: FAILURE - ATA_IDENTIFY timed out ata0-master: FAILURE - ATA_IDENTIFY timed out acd0: DVDR at ata0-slave PIO4 em0: Link is up 1000 Mbps Full Duplex ad4: 194481MB [395136/16/63] at ata2-master = SATA150 GEOM_MIRROR: Device gm0 created (id=3D1017183446). GEOM_MIRROR: Device gm0: provider ad4 detected. ad6: 194481MB [395136/16/63] at ata3-master = SATA150 GEOM_MIRROR: Device gm0: provider ad6 detected. GEOM_MIRROR: Device gm0: provider ad6 activated. GEOM_MIRROR: Device gm0: provider ad4 activated. GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. Mounting root from ufs:/dev/mirror/gm0s1a em0: Link is up 1000 Mbps Full Duplex ------=_NextPart_000_0008_01C6998B.09FC9590--