Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
for some reason my minicom has started messing with me.
first i can't access ttyS0 as user.
styx:/home/chad# l /dev/ttyS*
crw------- 1 root root 4, 64 2009-04-16 15:37 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2009-04-16 14:06 /dev/ttyS1
now, i've chgrp and chmod to ttyS0 been able to run minicom as user, yet within 2 minutes, it's back to root:root. it'll switch back to root:root within 2 minutes, even if minicom hasn't been run.
i've chgrp, chmod and then rebooted, hoping to have things stay the same, yet no. it starts out with root:root right away.
The priority would only apply when two rules would outrule each other, this is not the case here; but the SUBSYSTEMS one references to the KERNEL.
The issue you're having is with the 91-permissions file, and it would seem to me that you can indeed add a ttyS[0-9] MODE="0666", GROUP="dialout"; this ought to fix your problem.
should that be a SUBSYSTEM or a KERNEL?
i tried it as both, and did a /etc/init.d/udev restart, chgrp the ttyS0 to dialout and it still dropped back to root within 2-3 minutes.
a udev restart should do, don't think a hard reboot is necessary to make this stick.
First and foremost, I think you should NOT have to do a chmod/chown.
Quote:
should that be a SUBSYSTEM or a KERNEL?
i tried it as both, and did a /etc/init.d/udev restart, chgrp the ttyS0 to dialout and it still dropped back to root within 2-3 minutes.
Tbh, I don't know; I'd say KERNEL but not enitrely sure where this should reside. What I fear is that something other than udev is playing a part here, maybe the dialing software?
What happens if you'd chmod the ttyS0 device and do NOT dial out? Do the ownership and permissions change still? (This would be to determine if the dialing software may be playing a part here...)
Probably udev, take a look at your udev rules and see what group is bound to ttyS0.
Hi there, I also have had trouble with permissions with the Serial Port drivers. Symptom is when you start up gTKTerm you get 'permission denied' and you cant open the serial port.
The default rules from /etc/udev/ give permissions rw rw -- so that the root, and group uucp are allowed access , but others cannot.
I tried changing the permissions manually with chmod 666 ttyS0, and it works, but gets reset at start up.
Reading the threads here, I have just added a rule to the 91-permissions file.
KERNEL== ttyS[0-9] GROUP="uucp",MODE = "0666" , OPTIONS="last_rule"
On a re-boot, /etc/udev runs, and this rule changes the permissions to 666, so that you can access the serial ports.
I am new to Linux , so hope I have done this correctly!
Mike
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.