LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2009, 07:50 PM   #1
Yves Plasse
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
CAnnot access /dev/ttys1 with Minicom on Korn Shell


I am using Slackeare 12.2.

When I use Minicom as Root, I am able to dial out on /dev/ttys1. When I log as a normal user with its default Korn Shell (ksh), I get the message 'minicom: cannot open /dev/ttys1 - Permission denied' after starting it.

I tried to comment out /dev/ttys1 on the file /etc/serial.conf without success. Obviously, there must be a way to allow the access to /dev/ttys1 to a user. Can somebody tell me how?

Thank you,
Yves Plasse.
 
Old 01-09-2009, 08:48 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
make sure in your user manager the user has daemon and bin permission and plugdev.
 
Old 01-10-2009, 07:03 AM   #3
Yves Plasse
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
This user is part of the daemon, bin and plugdev groups. There must be something else...

Thank you,
Yves Plasse.
 
Old 01-10-2009, 07:23 AM   #4
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Rep: Reputation: 41
perhaps you do not have write permission on the folder wherein the config file for minicom is being created?
 
Old 01-10-2009, 11:55 AM   #5
Yves Plasse
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

I finally found the problem. After looking at all replies and reading a bit. I found somewhere that the message 'Permission Denied' is most likely related to a file permission problem. I logged as root and checked the permissions for /dev/ttyS1 to find that it was allowed read/write permission to root and uucp and none to the others. I just had to make my user part of the uucp group to be able to use minicom and access my modem on COM2.

Thank you all.
Yves Plasse.
 
  


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
korn shell variable help 4play Programming 9 11-23-2011 12:03 PM
Globbing using Korn Shell metallica1973 Programming 1 12-05-2007 04:56 PM
creating /dev/ttyS0 or ttyS1 MToloo Linux - Hardware 3 03-05-2007 09:09 AM
korn shell tutorial/course kapilcool Linux - Certification 2 11-13-2006 09:18 PM
No such device /dev/ttyS1 gsancho Debian 3 09-23-2004 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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