Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Jul 2006 14:05:54 +0300
From:      Yousef Raffah <yraffah@savola.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: permission denied on /dev/ttyd0
Message-ID:  <1151838354.784.5.camel@redevil.savola.com>
In-Reply-To: <1151776559.711.5.camel@redevil.savola.com>
References:  <1151776559.711.5.camel@redevil.savola.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-cgDXofPWyB3u4EdyMdvX
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2006-07-01 at 20:55 +0300, Yousef Raffah wrote:
> Hello..
>=20
> It's kinda strange though but I am getting a permission denied when I
> try to read from the /dev/ttyd0 device although I have:
>=20
> crw-------  1 root  wheel    0,  75 Jul  1 20:49 /dev/ttyd0
> crw-------  1 root  wheel    0,  76 Jul  1 20:45 /dev/ttyd0.init
> crw-------  1 root  wheel    0,  77 Jul  1 20:45 /dev/ttyd0.lock
>=20
I really can't understand what is causing this, anyone?
I just thought of adding my dmesg output in case it makes a difference:

Copyright (c) 1992-2006 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 6.1-RELEASE-p1 #0: Sat Jul  1 19:30:56 AST 2006
    root@redevil:/usr/obj/usr/src/sys/LAPTOP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1.86GHz (1862.01-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x6d8  Stepping =3D 8

Features=3D0xafe9f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,C=
MOV,PAT,CLFLUSH,DTS,ACPI, =20
MMX,FXSR,SSE,SSE2,SS,TM,PBE>
  Features2=3D0x180<EST,TM2>
real memory  =3D 536735744 (511 MB)
avail memory =3D 515883008 (491 MB)
kbd1 at kbdmux0
cpu0 on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 12 Entries> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCIBIOS PCI-PCI bridge> irq 11 at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <PCIBIOS PCI-PCI bridge> irq 10 at device 28.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <network, ethernet> at device 0.0 (no driver attached)
pcib3: <PCIBIOS PCI-PCI bridge> irq 11 at device 28.1 on pci0
pci3: <PCI bus> on pcib3
uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port
0x1200-0x121f irq 11 at device 29. =20
0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> 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: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port
0x1220-0x123f irq 11 at device 29. =20
1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> 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
uhci2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port
0x1240-0x125f irq 11 at device 29. =20
2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port
0x1260-0x127f irq 11 at device 29. =20
3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem
0xf4000000-0xf40003ff irq 11 at device 29.7 on  =20
pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801FB (ICH6) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib4: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0
pci6: <PCI bus> on pcib4
iwi0: <Intel(R) PRO/Wireless 2200BG> mem 0xb000b000-0xb000bfff irq 11 at
device 4.0 on pci6
iwi0: Ethernet address: 00:12:f0:63:ae:ca
cbb0: <PCI-CardBus Bridge> mem 0x13000000-0x13000fff at device 6.0 on
pci6
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <1394 Open Host Controller Interface> mem
0xb0000000-0xb00007ff,0xb0004000-0xb0007fff irq 1 =20
1 at device 6.2 on pci6
fwohci0: OHCI version 1.10 (ROM=3D0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:08:0d:a0:d1:bf:aa:e1
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=3D0xc000ffc0, gen=3D2, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me)
firewire0: bus manager 0 (me)
fwohci0: phy int
pci6: <mass storage> at device 6.3 (no driver attached)
pci6: <base peripheral> at device 6.4 (no driver attached)
pcm0: <Intel ICH6 (82801FB)> port 0xe000-0xe0ff,0xe100-0xe13f mem
0xd0000000-0xd00001ff,0xd0000200-0 =20
xd00002ff irq 10 at device 30.2 on pci0
pcm0: <Analog Devices AD1981B AC97 Codec>
pci0: <simple comms, generic modem> at device 30.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH6 SATA150 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1100-0x110f at d =20
evice 31.2 on pci0
atapci0: failed to enable memory mapping!
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xcffff,0xe0000-0xe1fff,0xe5000-0xe5fff,0xeb000-0xeffff on  =20
isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (port)
unknown: <SMCf010> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
Timecounters tick every 1.000 msec
ad0: 76319MB <FUJITSU MHT2080AT 0022> at ata0-master UDMA100
acd0: DVDR <MATSHITADVD-RAM UJ-831S/1.40> at ata1-master UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <MATSHITA DVD-RAM UJ-831S 1.40> Removable CD-ROM SCSI-0 device=20
cd0: 33.000MB/s transfers
cd0: cd present [1790992 x 2048 byte records]
Trying to mount root from ufs:/dev/ad0s2a

> Any idea what could be the reason?
>=20
> Using FreeBSD 6.1-RELEASE-p1
>=20
> Below is my kernel configuration file:
>=20
> machine         i386
> cpu             I686_CPU
> ident           LAPTOP
>=20
>=20
> makeoptions     DEBUG=3D-g                # Build kernel with gdb(1) debu=
g
> symbols
>=20
> options         SCHED_4BSD              # 4BSD scheduler
> options         PREEMPTION              # Enable kernel thread
> preemption
> options         INET                    # InterNETworking
> options         FFS                     # Berkeley Fast Filesystem
> options         SOFTUPDATES             # Enable FFS soft updates
> support
> options         UFS_ACL                 # Support for access control
> lists
> options         UFS_DIRHASH             # Improve performance on big
> directories
> options         MD_ROOT                 # MD is a potential root device
> options         NFSCLIENT               # Network Filesystem Client
> options         NFSSERVER               # Network Filesystem Server
> options         NFS_ROOT                # NFS usable as /, requires
> NFSCLIENT
> options         MSDOSFS                 # MSDOS Filesystem
> options         CD9660                  # ISO 9660 Filesystem
> options         PROCFS                  # Process filesystem (requires
> PSEUDOFS)
> options         PSEUDOFS                # Pseudo-filesystem framework
> options         GEOM_GPT                # GUID Partition Tables.
> options         COMPAT_43               # Compatible with BSD 4.3 [KEEP
> THIS!]
> options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
> options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
> options         SCSI_DELAY=3D5000         # Delay (in ms) before probing
> SCSI
> options         KTRACE                  # ktrace(1) support
> options         SYSVSHM                 # SYSV-style shared memory
> options         SYSVMSG                 # SYSV-style message queues
> options         SYSVSEM                 # SYSV-style semaphores
> options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
> extensions
> options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
> options         AHC_REG_PRETTY_PRINT    # Print register bitfields in
> debug
>                                         # output.  Adds ~128k to driver.
> options         AHD_REG_PRETTY_PRINT    # Print register bitfields in
> debug
>                                         # output.  Adds ~215k to driver.
> options         ADAPTIVE_GIANT          # Giant mutex is adaptive.
>=20
> device          apic                    # I/O APIC
>=20
> device          eisa
> device          pci
>=20
> device          ata
> device          atadisk         # ATA disk drives
> device          atapicd         # ATAPI CDROM drives
> options         ATA_STATIC_ID   # Static device numbering
>=20
>=20
>=20
> device          scbus           # SCSI bus (required for SCSI)
> device          ch              # SCSI media changers
> device          da              # Direct Access (disks)
> device          cd              # CD
> device          pass            # Passthrough device (direct SCSI
> access)
> device          ses             # SCSI Environmental Services (and
> SAF-TE)
>=20
> device          atkbdc          # AT keyboard controller
> device          atkbd           # AT keyboard
> device          psm             # PS/2 mouse
>=20
> device          kbdmux          # keyboard multiplexer
>=20
> device          vga             # VGA video card driver
>=20
> device          splash          # Splash screen and screen saver support
>=20
> device          sc
> device          agp             # support several AGP chipsets
>=20
> device          apm
> device          pmtimer
>=20
> device          cbb             # cardbus (yenta) bridge
> device          pccard          # PC Card (16-bit) bus
> device          cardbus         # CardBus (32-bit) bus
>=20
> device          ppc
> device          ppbus           # Parallel port bus (required)
> device          lpt             # Printer
> device          ppi             # Parallel port interface device
>=20
>=20
> device          miibus          # MII bus support
>=20
> device          wlan            # 802.11 support
> device          wi              # WaveLAN/Intersil/Symbol 802.11
> wireless NICs.
>=20
> device          loop            # Network loopback
> device          random          # Entropy device
> device          ether           # Ethernet support
> device          ppp             # Kernel PPP
> device          tun             # Packet tunnel.
> device          pty             # Pseudo-ttys (telnet etc)
> device          md              # Memory "disks"
>=20
> device          bpf             # Berkeley packet filter
>=20
> device          uhci            # UHCI PCI->USB interface
> device          ohci            # OHCI PCI->USB interface
> device          ehci            # EHCI PCI->USB interface (USB 2.0)
> device          usb             # USB Bus (required)
> device          ugen            # Generic
> device          uhid            # "Human Interface Devices"
> device          ukbd            # Keyboard
> device          ulpt            # Printer
> device          umass           # Disks/Mass storage - Requires scbus
> and da
> device          ums             # Mouse
>=20
> device          firewire        # FireWire bus code
> device          sbp             # SCSI over FireWire (Requires scbus and
> da)
>=20
> device          sio             # Added for serial ports
> device          atapicam        # Added to burn dvds with cdrecord
>=20


--
Sincerely,
Yousef Raffah
Senior Systems Administrator
--

Aren't you using Firefox? Get it at http://www.getfirefox.com



--=-cgDXofPWyB3u4EdyMdvX
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEp6iSH9IXMb4e6CMRAn5WAKCWDRTD3/BFesLrsjp2eSx3snPdUACguOQn
RpPDQuiXtVTtHQ4CokqB1NA=
=pV5O
-----END PGP SIGNATURE-----

--=-cgDXofPWyB3u4EdyMdvX--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1151838354.784.5.camel>