Skip to content

Commit 258af6b

Browse files
committed
Update Linux USB serial post intro
1 parent 46c318f commit 258af6b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

content/blog/2022-12-linux-usb-serial.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@ path = "blog/linux-usb-serial"
1010

1111
## Motivation
1212

13-
**NOTE:** This assumes you have root privileges on the machine you will use and are fine with giving _all users_ access to serial devices on the system.
13+
**NOTE:** This guide assumes you have root privileges on the machine you will use and are fine
14+
giving _all users_ access to a specific serial devices on the system. Some distributions create
15+
a `plugdev` group to allow similar. However, this group permits usage of _all serial devices_.
1416

1517
If you're using a USB serial device like an FTDI USB UART serial converter on Linux,
16-
only root can access the device by default. To allow users to use the USB serial device
17-
_without being root_, you need to configure a udev rule for the device.
18+
you'll need to either login as `root` or run your program with `sudo` permissions.
19+
For many reasons, this can be undesirable. However, for users without root permissions, this
20+
is a deal-breaker. A dedicated udev rule is one way to permit non-root usage.
1821

1922
If you aren't familiar with udev, [this article]("https://wiki.archlinux.org/title/udev")
20-
explains the basics and a bit of history. The main takeaway is that udev controls USB serial devices,
21-
among other things. This necessitates the creating an appropriate udev rule to use the device as a non-root user.
23+
explains the basics and a bit of history. The main takeaway is udev controls USB serial device
24+
system configuration, among other things, on many modern Linux distributions. Given this,
25+
creating a udev rule is the right way to go!
2226

2327
## Instructions
2428

0 commit comments

Comments
 (0)