anszom / vtty

Virtual serial port driver for Linux
Other
69 stars 19 forks source link

udev rule #15

Closed christianrauch closed 1 year ago

christianrauch commented 1 year ago

This adds and installs an udev rule to set the group permissions for the master and slave devices to dialout. This way, regular users of the dialout group can access the devices, similar to how they would access real serial devices.

I also documented how to build & install the module as this requires forwarding environment variables to the root shell via -E.

Note: This contains https://github.com/anszom/vtty/pull/14. Therefore, https://github.com/anszom/vtty/pull/14 should be merged first.

Fixes #13 .

anszom commented 1 year ago

sorry for the delay

As a compromise, I've added a warning if the dialout group doesn't exist. We could try to copy the permissions from /dev/ttyS0, but that would be overkill, and still just a wild guess, since we don't really know if these are the permissions that the user/admin wants.