Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2006 01:43:07 +0300
From:      "Viktoras Veitas" <vveitas@erc.lt>
To:        <freebsd-questions@freebsd.org>
Subject:   /bin/cat: Permission denied
Message-ID:  <!&!AAAAAAAAAAAYAAAAAAAAAErnaONQDa9OqanqjLiRsw3CgAAAEAAAAAG7lOk6/bRNq+4AcAZnGGkBAAAAAA==@erc.lt>

Next in thread | Raw E-Mail | Index | Archive | Help
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: <IntelR AWRDACPI>
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  =3D 1072562176 (1022 MB)
avail memory =3D 1040007168 (991 MB)
ioapic0: Changing APIC ID to 2
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <IntelR AWRDACPI> 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: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pci1: <ACPI PCI bus> on pcib1
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> 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: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <mass storage, SCSI> at device 8.0 (no driver attached)
uhci0: <UHCI (generic) USB controller> port 0xc400-0xc41f irq 16 at =
device 29.0
on pci0
usb0: <UHCI (generic) USB controller> 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: <UHCI (generic) USB controller> port 0xc000-0xc01f irq 19 at =
device 29.1
on pci0
usb1: <UHCI (generic) USB controller> 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: <base peripheral> at device 29.4 (no driver attached)
pci0: <base peripheral, interrupt controller> at device 29.5 (no driver =
attached
)
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> 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: <display, VGA> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel 6300ESB UDMA100 controller> 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: <Intel 6300ESB SATA150 controller> 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: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller> 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: <Standard parallel printer port> port 0x778-0x77b,0x378-0x37f irq =
7 on acp
i0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> 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<READY,DMA_READY,DSC,DRQ,CORRECTABL
E,INDEX,ERROR> =
error=3D7f<UNCORRECTABLE,MEDIA_CHANGED,NID_NOT_FOUND,MEDIA_CHANGE_R
EQEST,ABORTED,NO_MEDIA,ILLEGAL_LENGTH> LBA=3D0
ata0-master: FAILURE - ATA_IDENTIFY =
status=3D7f<READY,DMA_READY,DSC,DRQ,CORRECTABL
E,INDEX,ERROR> =
error=3D7f<UNCORRECTABLE,MEDIA_CHANGED,NID_NOT_FOUND,MEDIA_CHANGE_R
EQEST,ABORTED,NO_MEDIA,ILLEGAL_LENGTH> LBA=3D0
ata0-master: FAILURE - ATA_IDENTIFY timed out
ata0-master: FAILURE - ATA_IDENTIFY timed out
acd0: DVDR <LITE-ON DVDRW SOHW-1673S/JS02> at ata0-slave PIO4
em0: Link is up 1000 Mbps Full Duplex
ad4: 194481MB <Maxtor 6B200M0/BANC1B70> [395136/16/63] at ata2-master =
SATA150
GEOM_MIRROR: Device gm0 created (id=3D1017183446).
GEOM_MIRROR: Device gm0: provider ad4 detected.
ad6: 194481MB <Maxtor 6B200M0/BANC1B70> [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--





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?!&!AAAAAAAAAAAYAAAAAAAAAErnaONQDa9OqanqjLiRsw3CgAAAEAAAAAG7lOk6/bRNq+4AcAZnGGkBAAAAAA==>