/bin/cat: Permission denied

2006-06-26 Thread 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.

 

Thank you.

 

Viktoras

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
[EMAIL PROTECTED]:/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 = GenuineIntel  Id = 0xf41  Stepping = 1
  Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Hyperthreading: 2 logical CPUs
real memory  = 1072562176 (1022 MB)
avail memory = 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 0xf100-0xf101,0xf102-0xf103 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 0xf402-0xf403,0xf400-0xf401 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

Re: /bin/cat: Permission denied

2006-06-26 Thread jdow

From: Viktoras Veitas [EMAIL PROTECTED]


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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /bin/cat: Permission denied

2006-06-26 Thread Micah

jdow wrote:

From: Viktoras Veitas [EMAIL PROTECTED]


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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]