Results 1 to 4 of 4

Thread: udev rules do not make the proper changes

  1. #1
    Join Date
    Jun 2007
    Beans
    3

    udev rules do not make the proper changes

    Hello,

    I am running xubuntu (I've tried the changes on both 32 and 64 bit variants) 12.04, all current updates have been applied.

    I have the following udev rule in /etc/udev/rules.d/79-ftdi.rules

    SUBSYSTEM=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0001", SYMLINK+="sensors/ftdi_%s{serial}", OWNER="sensor", GROUP="dialout", MODE="0660"

    The symlink is created, and the group is changed to dialout, however, the owner does not change to sensor (the owner stays root, and the sensor user exists and I've logged into it) and the MODE stays 660 no matter what I put in the udev rule.

  2. #2
    Join Date
    Apr 2012
    Beans
    5,524

    Re: udev rules do not make the proper changes

    I'm not sure about this, but you could try

    Code:
    OWNER:="sensor", GROUP:="dialout", MODE:="0660"
    The := syntax supposedly 'locks' the assignment so that a later rule can't revert it - I used this form for a pluggable fingerprint reader and it seemed to work

  3. #3
    Join Date
    Jun 2007
    Beans
    3

    Re: udev rules do not make the proper changes

    It turns out the actual device file in the /dev/bus/... directory is changing correctly. The /dev/ttyACM0 isn't changing owner though. I added RUN+="/usr/bin/sudo /bin/sh -c 'chown sensor /dev/ttyACM0'" but this command does not seem to be running. Or if it is running, has no effect.
    Last edited by randomlogic78; March 27th, 2013 at 01:16 AM. Reason: Corrected command

  4. #4
    Join Date
    Jun 2007
    Beans
    3

    Re: udev rules do not make the proper changes

    The := did not change the problem. The directory in /dev/bus/usb/003/### has the correct owner and group, but the device file /dev/ttyACM0 does not have the correct owner nor permissions

Tags for this Thread

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
  •