LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-20-2006, 04:31 PM   #1
va3dxs
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Rep: Reputation: 15
tty permissions


I'm not sure if I have a problem or not, but would be grateful for some guidance.

I have three distinct types of serial port on my slackware 10.2 machine:

standard ttyS0 - ttyS1
multi-port serial card ttyD000 - ttyD007
remote terminal server ports ttyCC00 - ttyCC07

If I do ls -al /dev/ttyS0 as root, I get the following response from:

crw-rw---- 1 root uucp 4, 64 2006-3-20 22:18 /dev/ttyS0

I thought it should be owned by root and tty.

Similarly, if I do the same for /dev/ttyD000 or /dev/CC00 I get:

crw--w--w-- 1 root root ..... etc

which I understand to mean that it is owned by root and root.

If these are wrong, how can I change them to be owned by the proper groups?

Thanks
Roger
 
Old 03-20-2006, 06:57 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
If your system uses udev you will need to modify the rules which are used to create these files in /dev - better yet - put the adapted rules in a file which gets parsed before the standard file.
This way your changes will still be there after the file got updated someday - and thus overwritten.

The filename and location should be:
/etc/udev/rules.d/50-udev.rules - at least that is how it is here on my system.

The files in this directory are parsed in lexical order and rules are applied only once for a given device - so your rules need to come before the default.
Calling the file 10-my.rules will do that (10 takes care of it being the first file parsed - the ending .rules is mandatory - else it will be ignored).

If your system does not use udev, you can simply change the owner of the device file:
chown root:tty /dev/ttyS0
 
Old 03-20-2006, 07:32 PM   #3
va3dxs
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks very much for your help

I have /etc/udev/rules.d/udev.rules and had a look at that. Slightly odd because all the tty devices were already shown as belonging to group tty. Anyway, I have followed your second advice and changed the ownerships of all the devices, and everything seems well. (so far.....!)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
a tty???? rasejo Linux - General 5 02-23-2009 01:01 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
/dev/tty permissions changed by login tomlinuxq Linux - Newbie 0 12-28-2004 09:43 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
How to get into different tty? Noerr Linux - General 3 05-29-2002 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:59 PM.

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