From owner-freebsd-questions@FreeBSD.ORG Sun Jul 2 11:06:42 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 8AA6A16A40F for ; Sun, 2 Jul 2006 11:06:42 +0000 (UTC) (envelope-from yraffah@savola.com) Received: from heathrow.savoladns.com (heathrow.savoladns.com [212.12.174.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 5B19843D58 for ; Sun, 2 Jul 2006 11:06:39 +0000 (GMT) (envelope-from yraffah@savola.com) Received: from ocs.savola.com (ocs.savola.com [222.22.1.211]) by heathrow.savoladns.com (Postfix) with ESMTP id 10F679584A for ; Sun, 2 Jul 2006 14:06:37 +0300 (AST) Received: from 222.22.1.105 by ocs.savola.com with ESMTP id 65627581151837648; Sun, 02 Jul 2006 13:54:08 +0300 From: Yousef Raffah To: freebsd-questions@freebsd.org In-Reply-To: <1151776559.711.5.camel@redevil.savola.com> References: <1151776559.711.5.camel@redevil.savola.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-cgDXofPWyB3u4EdyMdvX" Organization: The Savola Group Date: Sun, 02 Jul 2006 14:05:54 +0300 Message-Id: <1151838354.784.5.camel@redevil.savola.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Subject: Re: permission denied on /dev/ttyd0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yraffah@savola.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2006 11:06:42 -0000 --=-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 Features2=3D0x180 real memory =3D 536735744 (511 MB) avail memory =3D 515883008 (491 MB) kbd1 at kbdmux0 cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 pcib1: irq 11 at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: irq 10 at device 28.0 on pci0 pci2: on pcib2 pci2: at device 0.0 (no driver attached) pcib3: irq 11 at device 28.1 on pci0 pci3: on pcib3 uhci0: port 0x1200-0x121f irq 11 at device 29. =20 0 on pci0 uhci0: [GIANT-LOCKED] 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 0x1220-0x123f irq 11 at device 29. =20 1 on pci0 uhci1: [GIANT-LOCKED] 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 uhci2: port 0x1240-0x125f irq 11 at device 29. =20 2 on pci0 uhci2: [GIANT-LOCKED] usb2: 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: port 0x1260-0x127f irq 11 at device 29. =20 3 on pci0 uhci3: [GIANT-LOCKED] usb3: 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: 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: 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: at device 30.0 on pci0 pci6: on pcib4 iwi0: mem 0xb000b000-0xb000bfff irq 11 at device 4.0 on pci6 iwi0: Ethernet address: 00:12:f0:63:ae:ca cbb0: mem 0x13000000-0x13000fff at device 6.0 on pci6 cardbus0: 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: on fwohci0 sbp0: 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: at device 6.3 (no driver attached) pci6: at device 6.4 (no driver attached) pcm0: port 0xe000-0xe0ff,0xe100-0xe13f mem 0xd0000000-0xd00001ff,0xd0000200-0 =20 xd00002ff irq 10 at device 30.2 on pci0 pcm0: pci0: at device 30.3 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1100-0x110f at d =20 evice 31.2 on pci0 atapci0: failed to enable memory mapping! ata0: on atapci0 ata1: on atapci0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff,0xe0000-0xe1fff,0xe5000-0xe5fff,0xeb000-0xeffff on =20 isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 ppc0: 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: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (memory) unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounters tick every 1.000 msec ad0: 76319MB at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: 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--