LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-30-2006, 12:06 AM   #1
teksaport
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
/dev permissions question


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?

/etc/inittab...
s1:12345:respawn:/sbin/agetty -L ttyS0 9600 vt100

Slackware 10.2
ext2
kernel 2.4.31
/dev/ttyS0

What else might you want to know?

Thanks for any help...
John
 
Old 04-30-2006, 01:24 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
You could just grep through the init scripts:

grep /dev/tty /etc/init.d/*

on Debian. Maybe /etc/rc.d on slack? I see some chmod/chown getting done.
 
Old 04-30-2006, 06:36 AM   #3
pen8wen
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
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.
 
Old 04-30-2006, 05:56 PM   #4
teksaport
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by maroonbaboon
You could just grep through the init scripts:

grep /dev/tty /etc/init.d/*

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.

Thanks
John
 
Old 04-30-2006, 05:59 PM   #5
teksaport
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pen8wen
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.

Thanks
John

Last edited by teksaport; 04-30-2006 at 06:03 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo /dev permissions Orkie Linux - Distributions 2 07-12-2005 02:33 PM
Clone with dd if=/dev/hda of=/dev/hdb question wrc1944 Linux - Hardware 2 11-28-2004 09:10 AM
/dev/null permissions? alaios Linux - General 2 10-09-2004 02:56 PM
/dev permissions mdk Mandriva 2 09-16-2004 09:12 PM
/dev Permissions ToeShot Linux - General 2 11-25-2001 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration