Sunday, May 5, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 7244  / 2 Years ago, thu, january 6, 2022, 11:16:44

I am working with some USB and Serial micro-controllers. Everytime I plug a device I have to do the following command to give it write access, and also my password:



sudo chmod 666 /dev/ttyUSB0


Can I set my Ubuntu to automatically give write access to pluged in devices?



If not, how can I make a batch file that I can easily give the access to port I want for example if I run the following command it does the job:



giveaccess -usb0

More From » command-line

 Answers
1

You should add your userid to the dialout group. Suppose your userid is joeuser, then do:



sudo adduser joeuser dialout


and then log out and log back in again for this to take effect.


[#34160] Thursday, January 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tusmuumu

Total Points: 195
Total Questions: 122
Total Answers: 104

Location: Oman
Member since Tue, Feb 7, 2023
1 Year ago
;