Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi, I'm trying to setup my new APC ups on ttyS0. ttyS0 is working as I would expect. APC's instructions say to set /dev/ttyS0 to the user created to run their program. Ok, no biggy. Except that ttyS0's owner/group keep getting reset back to root:root.
Can someone tell me how to keep the owner group settings I put there?
Since I'm running 2.4, udev isn't usable. So where in the heck is this getting reset? Obviously in Slack, /etc/inittab respawns the device, but what am I missing?
interesting.... are you sure you need getty for this? i haven't used apc ups on linux b4, as i use a belkin. i'm no expert on this, but it seems the process just opens /dev/ttyS0. for me, the ttyS0 line in inittab is commented out.
on Debian. Maybe /etc/rc.d on slack? I see some chmod/chown getting done.
Thanks for the suggestion, and I've already done that. On slackware there isn't a /etc/init.d/ However there are plenty of startup files and all I find are references to the boot time. But the problem happens while its running, so the bootup scripts can't be at fault.
interesting.... are you sure you need getty for this? i haven't used apc ups on linux b4, as i use a belkin. i'm no expert on this, but it seems the process just opens /dev/ttyS0. for me, the ttyS0 line in inittab is commented out.
No not entirely sure. 'agetty' wasn't discussed in the APC install manual. But it was enabled after the OS install. Could 'agetty' be resetting the permissions? I don't see anything in the /etc/inittab which would set perms. But if there was some default of root:root, and agetty re-makes the device upone some unknown criteria, then perhaps thats when it happens. It's obvious that agetty gets 'respawned', but I don't know when or why.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.