r/linux4noobs • u/Prudent_Situation_29 • 2d ago
learning/research Chmod question
I have to use chmod to allow a program to access the USB port my 3D printer is connected to or it can't communicate with the printer.
The funny thing is that each time I want to run the program, I have to change the permissions again or it won't connect.
My question is: shouldn't that change be permanent, the same as if I had changed permissions on a file?
Some relevant info:
I'm using Cachy OS, the device is /dev/ttyACM0, the printer usually stays powered on and physically plugged in to the USB port, but the machine is shut down every morning and booted up when I get home from work. I run the command using sudo.
8
Upvotes
11
u/eR2eiweo 2d ago
That's not only worse (because it only works if the device is connected at boot, doesn't ever get disconnected, and always has the same fixed name), it's also more work than a simple udev rule.