Results 1 to 3 of 3

Thread: changing serial port permissions permanently

  1. #1
    Join Date
    Nov 2014
    Beans
    19

    changing serial port permissions permanently

    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?

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: changing serial port permissions permanently

    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

  3. #3
    Join Date
    Apr 2012
    Beans
    7,256

    Re: changing serial port permissions permanently

    Have you tried adding your user to the dialout group instead? it is sometimes sufficient for serial device connections

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •