Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    /dev/ttyS0 Permissions Issue


    Hi Everyone,

    I'm running SUSE Linux Enterprise Server 10 and am having problems setting the permissions to my serial port.

    I've tried setting it through the GUI - this works ok, but seems to reset when the server reboots.
    I've also tried typing chown <user> /dev/ttyS0 from a terminal window.
    Again, this works ok, until I reboot, when the permissions are set back to default (root).

    I'm quite new to Linux but think I have a reasonable understanding of it so far....any suggestions of what I am doing wrong would be appreciated.

    Thanks,

    Peter.

  2. #2
    I needed to change permissions to /dev/ttyS0 on Fedora Core 5 as well.
    Since security isn't a big issue on this box, I'm adding rw to all users:

    #chmod a+rw /dev/ttyS0

    Which is eliminated at reboot, since udev rewrites /dev each boot, if I understand correctly.

    This is the solution that works for me:

    http://www.astro.louisville.edu/moor...el-3.1/INSTALL - has a section on editing the UEV settings. Basically it says:

    As root, edit:
    /etc/udev/rules.d/50-udev-default.rules

    To:
    KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp"

    Change to --

    KERNEL=="tty[A-Z]*", NAME="%k", GROUP="uucp", MODE="666"

    I assume that you can change it to:
    KERNEL=="tty[A-Z]*", NAME="%k", GROUP="YOUR GROUP"

    Hope this helps.

  3. #3
    Wow, I'd forgotten about that one!

    Thanks for that, I'll take a look and see if I can get my project working again!

  4. $spacer_open
    $spacer_close

Posting Permissions

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