Here’s another approach, modify the permissions/ownership of the device directly.
Seems straightforward to me.
Although I haven’t actually done the following,
To my eye not just the primary solution but all the others should work… I don’t see anything that would be specific to systemd or SysVint.
Is an interesting concept…
I would ordinarily never consider granting less than root RW permission to a tty, but if access is restricted to a physical serial port, I suppose that would not compromise the system (If you have physical access, then nearly anything is possible). I’d just state the obvious warning… Be sure that the tty can’t be accessed some other way… especially by a network connection.
Hello,
while investigating how to make a udev rule, I stumbled about a post that gave a very easy solution:
In the unit file the ExecStart line must be: