| Summary: | /dev/tty does not offer group "wheel" permission | ||
|---|---|---|---|
| Product: | Base System | Reporter: | RMM1 <robert.m.mcisaac> |
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed Not A Bug | ||
| Severity: | Affects Some People | CC: | zarychtam |
| Priority: | --- | ||
| Version: | 12.2-RELEASE | ||
| Hardware: | amd64 | ||
| OS: | Any | ||
|
Description
RMM1
2021-04-06 19:30:11 UTC
/dev/ttyu0 is for mainboard UART /dev/ttyU0 is for USB UART adapter Only root has read-write permission for these devices. User account gets access denied. I can do a root account loopback test (join pins 2 and 3 of the DB9 connector) so that whatever is typed is sent on TX and received on the RX pin using Minicom or Picocom. If I do "chmod g+rw /dev/ttyu0" it works for the user account. Chmod of the permission bits is a temporary test. It goes back to default after reboot or unplug of the USB adapter. You did not state what you consider to be a bug yet you opened a bug report. If you are new to this kind of system configuration please seek help on forums (or even internet search). I selected Problem Report Database which happens to use Bugzilla. So I was reporting a problem. Ideally, some FreeBSD expert would evaluate the problem and decide if it is literal bug or a user issue. He/She would ask users for more details and filter a clean workflow for developers. My tests shows that the hardware works but the system does not enable it for users in the wheel group as the design intended. I don't know how to enable it without compromising security. (In reply to RMM1 from comment #4) > Ideally, some FreeBSD expert would evaluate the problem and decide if it is literal bug or a user issue. And that's what happened. There is no promise that group wheel has access to that type of hardware, so there is no bug. If you have a question about how to configure FreeBSD to suite your needs, please ask it on forums. It's rather not a bug, please take a look at devfs.conf(5) nam page and change /etc/devfs.conf to fulfill your needs. |