[lxc-users] Unprivileged LXC and world-writable /dev/ttyUSB...

Dr. Todor Dimitrov dimitrov at technology.de
Thu Jan 4 11:11:56 UTC 2018


Hallo,

accessing the /dev/ttyUSB… devices from inside an unprivileged container requires that the dev nodes are configured with world-writable permissions, i.e.

crw-rw-rw-    1 root     root      188,   0 Jan  1  1970 /dev/ttyUSB0

Is there a way to make the subordinate user (e.g. subuid 100000) be a member of a group (e.g. dialout) such that the access to the /dev/ttyUSB… devices is somewhat restricted, e.g.

crw-rw----    1 root     dialout      188,   0 Jan  1  1970 /dev/ttyUSB0

I guess the reverse configuration would be possible, but not very generic:

crw-rw----    1 root     100000      188,   0 Jan  1  1970 /dev/ttyUSB0

Thanks in advance,
Todor



More information about the lxc-users mailing list