LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-03-2005, 05:45 PM   #1
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
odd behaviour of wvdial


Ok, this is regarding my internet connection using wvdial. Im using Fedora core 4 by the way. If i use kppp i can connect to the net fine and everything works away ok but I prefer to use wvdial. For some reason though if i type wvdial at the command line i get

Code:
[nnp@main ~]$ wvdial
--> WvDial: Internet dialer version 1.54.0
--> Cannot open /dev/ttyS0: Device or resource busy
--> Cannot open /dev/ttyS0: Device or resource busy
--> Cannot open /dev/ttyS0: Device or resource busy
[nnp@main ~]$
I thought it might be a permissions problem so to test i switched to root and everything worked fine. The problem then though was i couldnt connect to any sites. I was getting "host not found" messages from firefox and pinging hostnames got me "unknown host" messages,

I set the permissions the same as root so i dont think its that.
Code:
[root@main nnp]# cd /usr/bin
[root@main bin]# chmod 775 wvdial
[root@main bin]# ls -al wvdial
-rwxrwxr-x  1 root root 125736 Mar  3 13:11 wvdial
[root@main bin]# exit
exit
Here is my config file if that helps

Code:
[Dialer Defaults]
Modem = /dev/ttyS0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = 1890924042
Username = free
Password = free
I know its not a firewall issue as a)I disabled it and b)I can work fine with kppp(if a little slowly)

Any ideas?

NNP
 
Old 08-03-2005, 07:03 PM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
I had this exact same problem and like you I'd verified all the permissions were set correctly. The only way I found to resolve the problem was to make wvdial setuid root:

Code:
chmod o+s `which wvdial`
That way wvdial will always run with root privileges. Needless to say, this is not ideal and is a potential security risk but after posting to this forum (see http://www.linuxquestions.org/questi...hreadid=348563) about the problem the general consensus was to make wvdial setuid root to solve the problem.
 
Old 08-04-2005, 06:30 AM   #3
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Wierd, is this a Fedora Core problem? I never had this while using Mandriva.
 
Old 08-05-2005, 03:11 PM   #4
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Ok i've done that and its still the same crap. ANy ideas? Here is the output

Code:
[nnp@main ~]$ su
Password:
[root@main nnp]# chmod o+s `which wvdial`
[root@main nnp]# exit
exit
[nnp@main ~]$ wvdial
--> WvDial: Internet dialer version 1.54.0
--> Cannot open /dev/ttyS0: Device or resource busy
--> Cannot open /dev/ttyS0: Device or resource busy
--> Cannot open /dev/ttyS0: Device or resource busy
[nnp@main ~]$ ls -al /usr/bin/wvdial
-rwxrwxr-x  1 root root 139872 Mar  3 13:11 /usr/bin/wvdial
[nnp@main ~]$
 
Old 08-05-2005, 03:58 PM   #5
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Odd. Looks like the chmod command didn't work. Try it like this instead:

Code:
chmod o+s /usr/bin/wvdial
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very odd behaviour dialing ISP phidor Mandriva 6 05-28-2005 06:36 AM
odd behaviour of array elements in c++ markhod Programming 4 03-14-2005 10:58 AM
Odd behaviour on desktop... user00265 Slackware 19 02-26-2005 07:06 PM
Odd Ogg behaviour Misel Linux - Software 3 05-04-2003 04:18 PM
Very odd CPAN behaviour! bluehz Linux - Software 0 07-08-2002 05:59 PM


All times are GMT -5. The time now is 11:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration