Hi. I use the USB serial port to connect to routers, but everytime it reboots I have to change permission for /dev/ttyUSB0 and /dev/ttyS0.
How can I change this permanently so it has chmod 777 on reboot?
Hi. I use the USB serial port to connect to routers, but everytime it reboots I have to change permission for /dev/ttyUSB0 and /dev/ttyS0.
How can I change this permanently so it has chmod 777 on reboot?
Add the command to the file /etc/rc.local, a script that runs after everything else that starts at boot. rc.local runs with root privileges, so you don't need sudo, just:
Code:chmod 777 /dev/ttyS0 chmod 777 /dev/tty/USB0
If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.
Blog · Linode System Administration Guides · Android Apps for Ubuntu Users
Have you tried adding your user to the dialout group instead? it is sometimes sufficient for serial device connections
Bookmarks