LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-05-2007, 11:37 AM   #1
fullgore
Member
 
Registered: Aug 2006
Location: Brasilia, Brazil
Distribution: Slackware / Suse / FreeBSD
Posts: 55

Rep: Reputation: 15
Angry ttyS* permissions


At a Slack 11, as root, Iīm trying to change the permissions of devices ttyS0, ttyS1, ttyS2 and ttyS3 to able comom users to change the device configuration at minicom. I tried to to change the permissions at two workstation but it didnīt work at the both computers. I put in the terminal:

# chmod 776 ttyS*
# chgrp eng ttyS*

The terminal just jump to the next confiming the execution of the command but when I list the devices:

# ls -l ttyS*

The permissions are still the same.
I used to do this process at workstations with Slack 10.2 and worked fine but at Slack 11 I fighting to get it working...
Is there any other process to make this happen?

Last edited by fullgore; 03-06-2007 at 06:21 AM.
 
Old 03-05-2007, 12:18 PM   #2
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I'm not sure if it will work, but you could try <if you are using udev> to modify

/etc/udev/rules.d/udev.rules

find this section and modify accordingly:

# tty devices
KERNEL=="console", NAME="%k", GROUP="tty", MODE="0600"
KERNEL=="tty", NAME="%k", GROUP="tty", MODE="0666"
KERNEL=="tty[0-9]*", NAME="vc/%n", SYMLINK+="%k", GROUP="tty"
KERNEL=="ttyS[0-9]*", NAME="tts/%n", SYMLINK+="%k", GROUP="tty"
KERNEL=="ttyUSB[0-9]*", NAME="tts/USB%n", GROUP="tty", MODE="0666"
KERNEL=="ippp0", NAME="%k", GROUP="tty"
KERNEL=="isdn*", NAME="%k", GROUP="tty"
KERNEL=="dcbri*", NAME="%k", GROUP="tty"
KERNEL=="ircomm*", NAME="%k", GROUP="tty"

I imagine you could add MODE="0666" to the KERNEL=="ttyS[0-9]*" line
# udevtrigger as root should make the change immediately
tobyl

Last edited by tobyl; 03-05-2007 at 12:35 PM.
 
Old 03-06-2007, 08:30 AM   #3
fullgore
Member
 
Registered: Aug 2006
Location: Brasilia, Brazil
Distribution: Slackware / Suse / FreeBSD
Posts: 55

Original Poster
Rep: Reputation: 15
Angry

Quote:
Originally Posted by tobyl
I'm not sure if it will work, but you could try <if you are using udev> to modify

/etc/udev/rules.d/udev.rules

find this section and modify accordingly:

# tty devices
KERNEL=="console", NAME="%k", GROUP="tty", MODE="0600"
KERNEL=="tty", NAME="%k", GROUP="tty", MODE="0666"
KERNEL=="tty[0-9]*", NAME="vc/%n", SYMLINK+="%k", GROUP="tty"
KERNEL=="ttyS[0-9]*", NAME="tts/%n", SYMLINK+="%k", GROUP="tty"
KERNEL=="ttyUSB[0-9]*", NAME="tts/USB%n", GROUP="tty", MODE="0666"
KERNEL=="ippp0", NAME="%k", GROUP="tty"
KERNEL=="isdn*", NAME="%k", GROUP="tty"
KERNEL=="dcbri*", NAME="%k", GROUP="tty"
KERNEL=="ircomm*", NAME="%k", GROUP="tty"

I imagine you could add MODE="0666" to the KERNEL=="ttyS[0-9]*" line
# udevtrigger as root should make the change immediately
tobyl
It didnīt work... but I will check out the configuration address of the serial board, even I had put the same configuration I put in the old machine Iīm gonna check because even when Iīm as root at minicom and I print something through the serial it doesnīt show anything at the screen thatīs why I suspect of the board config.
 
Old 03-06-2007, 02:06 PM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Ok, looks like you have more than just a permissions problem.

http://tldp.org/HOWTO/Serial-HOWTO.html

is a superb guide if you haven't found it already, but I don't think it has quite caught up with udev yet.
If you have more than 4 serial ports you may need to recompile your kernel to allow for this.
If you are still stuck, make sure you state which kernel you are using in your reply.

good luck,

tobyl
 
Old 03-06-2007, 04:47 PM   #5
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
The correct way to allow normal users to use ttySx is to add group tty to said user.
 
  


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
Screens and ttys BiThian *BSD 1 01-05-2007 03:47 PM
change number of ttys wrat Linux - Newbie 1 06-15-2004 08:51 PM
ttys? VS IRQ 3 or 4 farhan Linux - Networking 0 11-11-2003 12:46 PM
Changing ttys Stephanie_new Linux - General 5 06-14-2002 02:25 PM
ttyS ports trusouthrnplaya Linux - General 3 08-05-2001 11:12 PM

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

All times are GMT -5. The time now is 02:12 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