Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My user can't access the serial port
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Tue Feb 18, 2003 2:38 am    Post subject: My user can't access the serial port Reply with quote

I can't really figure this one out. I've tried chmod a+rw anything in my /dev that looks like it's related to serial and all that, but it doesn't seem to do anything. Only root can access the serial port. I'd assume the solution lies somewhere within devfsd.conf but I don't know too much about that. I tried adding some stuff in there but it didn't seem to do anything. Anyone know what's up? I'm running kernel 2.5.45.
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Feb 18, 2003 4:33 am    Post subject: Reply with quote

I don't think it could be the result of devfsd.conf that you can't access your serial ports because the only kind of problems I've heard about resulting from that is the loss of permission changes when the machine is rebooted, for example.

Are you sure you're getting the correct device in /dev? They should be /dev/ttyS0, /dev/ttyS1, etc.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Tue Feb 18, 2003 4:53 am    Post subject: Reply with quote

Yeah I've tried /dev/ttyS0 and /dev/tts/0 and all that.
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Feb 18, 2003 5:09 am    Post subject: Reply with quote

What are you using to access the serial port as root? Do you get a "permission denied" error when you try that as another user, afwer you've made the port readable and writable?
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
acidreign
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 122
Location: Brisbane, Australia

PostPosted: Tue Feb 18, 2003 5:27 pm    Post subject: Assuming that they work as root Reply with quote

Create a new group, call it serialportusers for example.
Edit your devfsd.conf (back it up first) and enter the line

REGISTER ttyS0 PERMISSIONS root.serialportusers rw-rw----

(ttyS0 is the first port, duplicate for ttyS1, ttyS2, etc)

you MUST reboot for this to take effect, killing and devfsd will not work.

After this, add the users to the serialportusers group that you wish to have access to the serial port device.

usermod -G users,serialportusers USERNAME


This will allow users to be able to access the serial port, if its not solving the problem you have a larger issue with your computer.
Back to top
View user's profile Send private message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Wed Feb 19, 2003 4:12 am    Post subject: Reply with quote

Maybe I forgot to include something in my kernel or it's just a quirk with 2.5? It's still giving me grief :( oh well I guess it's not that important... it's just an inconvenience. Thanks for the help anyways.
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum