Professional Web Applications Themes

file mode on dynamicly created cua/tty devices - FreeBSD

How do I set file mode to 0666 on dynamicly created devices, such as cua* and tty* ? I couldn't find the answer in the Handbook. I'm trying to get a alm m500 to hotsync with pilot-link and Kpilot on FreeBSD 6-CURRENT. So far, I can communicate via dlpsh as root if I press the HotSync button on the cradle, wait for /var/log/messages to show: ucom0: Palm, Inc. Palm Handheld, rev 1.00/1.00, addr 2 then execute: sudo dlpsh -p /dev/cuaU0 _or_ if I press HotSync button, then: sudo chmod 0666 /dev/cuaU0 ; dlpsh -p /dev/cuaU0 I assume the ownsership issue ...

  1. #1

    Default file mode on dynamicly created cua/tty devices

    How do I set file mode to 0666 on dynamicly created devices, such as
    cua* and tty* ?

    I couldn't find the answer in the Handbook.

    I'm trying to get a alm m500 to hotsync with pilot-link and Kpilot on
    FreeBSD 6-CURRENT. So far, I can communicate via dlpsh as root if I
    press the HotSync button on the cradle, wait for /var/log/messages to
    show:

    ucom0: Palm, Inc. Palm Handheld, rev 1.00/1.00, addr 2

    then execute:

    sudo dlpsh -p /dev/cuaU0

    _or_

    if I press HotSync button, then:

    sudo chmod 0666 /dev/cuaU0 ; dlpsh -p /dev/cuaU0

    I assume the ownsership issue is preventing me from using KPilot.
    Randy Guest

  2. #2

    Default Re: file mode on dynamicly created cua/tty devices

    On Fri, Apr 01, 2005 at 08:12:05PM -0800, Randy Primeaux wrote: 

    See the devfs manpages.

    Kris

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

    iD8DBQFCTkT7Wry0BWjoQKURAtybAJsEIzvhF/5Q0UH1rIzT5cpU2Mi7EQCg6rcA
    7IXWLf6OZB44ZAWAHgpOkH8=
    =ykE1
    -----END PGP SIGNATURE-----

    Kris Guest

  3. #3

    Default Re: file mode on dynamicly created cua/tty devices

    Roland, thanks. Kris, I'd read "man devfs", but couldn't wrap my head
    around it in the time available. The comments in this email are for
    the benefit of future readers.

    I solved my issue my implementing a ruleset as Roland had suggested in
    his webpage, and applied the ruleset. And yes, the man page helped me
    through this process.

    *****
    /etc/devfs.rules

    [chuck_usb=10]
    add path 'da*' mode 0660 group usb
    add path 'cua*' mode 0666
    *****
    /etc/rc.conf

    # Set the default devfs ruleset.
    devfs_system_ruleset="chuck_usb"
    *****
    This is a sample of what I did at the commandline.

    # /sbin/devfs rule -s 10 add path 'cua*' mode 0666
    # /sbin/devfs ruleset 10 apply
    # ls -laF /dev/cua*
    crw-rw-rw- 1 root wheel 12, 152 Apr 2 14:00 /dev/cuaU0
    crw-rw-rw- 1 root wheel 12, 155 Apr 1 00:38 /dev/cuaU0.init
    crw-rw-rw- 1 root wheel 12, 154 Apr 1 00:38 /dev/cuaU0.lock
    crw------- 1 root wheel 12, 70 Apr 1 00:38 /dev/cuad0
    crw------- 1 root wheel 12, 65 Apr 1 00:38 /dev/cuad0.init
    crw------- 1 root wheel 12, 64 Apr 1 00:38 /dev/cuad0.lock


    I wasn't able to correctly "add path" directly.

    #devfs add path 'cua*' mode 0666
    devfs: unknown command: add

    # devfs rule add path 'cua*' mode 0666
    devfs rule: ioctl DEVFSIO_RADD: Input/output error


    Now I can hotsync and backup my Palm with Kpilot. Yay!


    On Apr 2, 2005 1:10 AM, Roland Smith <nl> wrote: 
    >
    > With devfs(8). To set the permissions from the command line, use
    >
    > devfs add path 'cua*' mode 0666
    >
    > This setting is lost at reboot, unless you put it in
    > /etc/devfs.rules. See my freebsd page at
    > http://www.xs4all.nl/~rsmith/freebsd/ for a more thorough explenation.
    >
    > Roland
    > --
    > R.F. Smith /"\ ASCII Ribbon Campaign
    > r s m i t h x s 4 a l l . n l \ / No HTML/RTF in e-mail
    > http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail
    > public key: http://www.keyserver.net / \ Respect for open standards[/ref]
    Randy Guest

Similar Threads

  1. How is a cthub file created?
    By w3bal3x in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: March 23rd, 02:50 PM
  2. #23188 [Com]: CDB databases created with "c" mode do not work.
    By lx-box at gmx dot de in forum PHP Development
    Replies: 0
    Last Post: November 7th, 11:32 AM
  3. Problem with Eventhandlers dynamicly created MobileControls
    By Kristof Pauwels in forum ASP.NET General
    Replies: 1
    Last Post: July 27th, 07:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139