Results 1 to 3 of 3
Thread: /dev/ttyS0 Permissions Issue
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
08-02-2006 #1Just Joined!
- Join Date
- Aug 2006
- Posts
- 2
/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.
-
11-12-2006 #2Just Joined!
- Join Date
- Nov 2006
- Posts
- 1
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.
-
11-13-2006 #3Just Joined!
- Join Date
- Aug 2006
- Posts
- 2
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!


Reply With Quote