LinuxQuestions.org
Help answer threads with 0 replies.
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 10-02-2002, 02:29 PM   #1
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
Can use wvdial as user


I am using RH7.3, and wvdial to dial up to my ISP. For some reason, GPPP and KPPP don't work with my modem. No matter, wvdial works fine. The only problem is that I can't use wvdial as a user, only as root. If i try as user I get this:

can't open /dev/ttyS0

I have tried changing the permissions for wvdial, even for /dev/ttyS0 ( i don't even know if that makes sense) and still no go.

I know that this is something trivial, I just can't seem to find what I need to change.

Can anyone lend a hand?

Thanks,
Vlad.
 
Old 10-02-2002, 02:34 PM   #2
bsdjunkie
Member
 
Registered: Sep 2002
Distribution: slack
Posts: 39

Rep: Reputation: 15
please post the permissons for /dev/ttyS0 and wvdial program. Sounds like your user is not in the correct group to use it, or the permissions dont allow anyone to do it.
 
Old 10-02-2002, 03:02 PM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Im runnind wvdial fine as a user. Here are the permissions:
--(Wed Oct 2, 22:01:04)--(nskl@SlackBox:/dev)$ ls -l modem
lrwxrwxrwx 1 root root 5 Aug 6 22:22 modem -> ttyS1
--(Wed Oct 2, 22:01:11)--(nskl@SlackBox:/dev)$ cd /usr/local/bin/
--(Wed Oct 2, 22:01:30)--(nskl@SlackBox:/usr/local/bin)$ ls -l wvdial
-rwsr-xr-x 1 root root 60524 Aug 9 14:21 wvdial*
--(Wed Oct 2, 22:01:36)--(nskl@SlackBox:/usr/local/bin)$
HTH
-NSKL
 
Old 10-02-2002, 03:55 PM   #4
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Original Poster
Rep: Reputation: 30
Ok, I checked the permissions, and i did chmod 7777 /dev/ttyS0 and the same for /usr/wvdial. Then it dialed, but it disconnected right after authentication with the PPPD code 2.

I know that I am screwing up with the chmod somewhere. Can someone (like NSKL ) give me the exact chmod (I understand the 9 least significant bits, its the most significant three that i don't know what they do) that I should use on these two files?

edit : fixed a typo

Last edited by Vlad_M; 10-02-2002 at 03:57 PM.
 
Old 10-03-2002, 09:27 AM   #5
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
From PPPD man page: Exit status:
2 An error was detected in processing the options given, such as two mutually exclusive options being used.
Are you sure pppd is setup correctly?
Anyways all i did is chmod a+rwx on /dev/modem (linked to ttys1) so i chmoded them both, as well as wvdial binary. all chmod a+rwx but beware, this is giving permissions to everyone to use these files, i'm the only user on this computer, so local security is not of a concern, but if you have more useres you might want to created a dialup group and add your user there.
Hope that helps, ask if you needm more help
-NSKL
 
Old 10-03-2002, 01:04 PM   #6
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Original Poster
Rep: Reputation: 30
Yeah, I know what the error is and that's what baffles me. Wvdial is working 100% if used as root, and then it gives that if I use it as user. The thing is that it's using the same file, /etc/wvdial.conf, and before you ask I did change the permissions of that file as well.

Strange, strange, strange...

Anyone have any suggestions?
 
Old 10-03-2002, 02:21 PM   #7
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
In the corber of my mind i remember changing some more permissions, on a file called options, or ppp.options or options.conf, you get the point.. but for the life of me i cant find it any more....
Ahh here! /etc/ppp/options
try that and see what happens.
HTH
-NSKL
 
Old 10-04-2002, 07:42 AM   #8
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Original Poster
Rep: Reputation: 30
Yeah, managed to sort it out. It was the /etc/ppp/otions, but then it still didn't work. The /etc/ppp/pap-secrets also needed to be changed. Now it works.

Thanks NSKL for the help!!!
Cheers mate!
 
  


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
WvDial Streams Linux - Software 6 12-30-2006 05:25 PM
Wvdial failing on ioctl call as regular user mugwump84 Linux - Software 3 11-27-2005 01:01 PM
connect wvdial as non-root user? cdhgee Linux - Software 4 08-01-2005 02:37 AM
wvdial cammet Linux - General 1 07-31-2005 05:09 PM
wvdial for user Zander Linux - Software 1 09-06-2003 07:47 PM

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

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