1

My goal is to limit access to FPGA dev board (connected by usb) to certain users. We normally access these dev boards using Vivado or Quartus Prime. For some reason, Vivado seems to be overriding the permissions, and still allows any user to read/write to the board despite the permissions I updated using udev rules. I'm not sure how to prevent this application from superseding the rules I made.

This is what I tried to do below:

I placed a rules file under /etc/udev/rules.d with the following contents

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", ATTRS{serial}=="210328AD3B1E", OWNER:="username", MODE:="0600"

This was the resulting permissions from the symbolic link under /dev

crw------- 1 username dialout 188, 1 Jan 13 18:14 ttyUSB1

I'm also curious what the "1" before the username and the "188" subsequently means.

Any help or advice would be appreciated.

1
  • After some deep searching, I've come to the conclusion that Ubuntu does not have the capabilities I need to resolve this. As far as I can tell, I am unable to dynamically alter permissions for usb devices unless I cycle power, and that is not something I can do with Ubuntu. Furthermore, I don't think there is a way to prevent my application from overriding permissions If it has its own read/write privileges. Jan 26, 2023 at 18:18

1 Answer 1

0
  • For the column meaning of ls check this post from SE Unix.

  • You can use a group to filter users. However as long the application is run read-write permission, it will override the permissions.

    Better to look how that app is resetting the permission, may be it is just another custom udev rule.

    udevadm info -a /dev/ttyUSB1
    udevadm test /sys/bus/usb/devices/...
    
2
  • 1
    So I found that the permission were being overwritten by another rules file, and I added another rule to address it, but it didn't seem to resolve the problem. Is there a way to run the application tied to user permissions? Jan 24, 2023 at 21:09
  • @FPGA_Student_Driver, yes you can run the app as another user or group too, using su or sudo . You may check man page for command options
    – user.dz
    Jan 24, 2023 at 21:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .