LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-11-2002, 04:35 PM   #1
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Rep: Reputation: 15
Question wvdial problems


I've read all the posts about getting wvdial to work, and I have done it with a previous version of mandrake, but I'm just unable to get wvdial to work with a normal user. Of course it works fine with root, but when i try with a user i get this error;
WvDial: Internet dialer version 1.42
--> Cannot open /dev/ttyS0: Device or resource busy
I know this has to be a permissions error, and I've tried chown on
wvdial, wvdial.conf, chap-secrets, pppd but it still won't work. Is there something missing, or am I getting at the security wrong?
Thanks
 
Old 04-12-2002, 12:44 AM   #2
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
Hi, I, as I keep telling people, am no expert, but I HAD EXACTLY this problem. Kinternet calls wvdial, and nothing happens. I can't remember what I did exactly, but i moved myself, dad, into various groups, and changed permissions, still wouldn't work.
But, now I call wvdial from a console, and it connects straight away, well, asks for my password, but I don't have any probs. Kinternet still won't work, and another dialler under Internet in the start menu works sometimes, but often causes errors.
Try wvdial from a console, let me know if that helps
 
Old 04-12-2002, 02:11 AM   #3
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Original Poster
Rep: Reputation: 15
I am using wvdial from the console.
It works when I use root, not normal user.
I've never used anything else to call it. KPPP works ok, so I'd have thought permissions on pppd must be ok?
 
Old 04-12-2002, 08:35 AM   #4
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 33
Posts: 38

Rep: Reputation: 15
You need rw permissions to /dev/ttyS0 (or whatever is the device your modem's connected to) and possibly to /var/lock. You should never run wvdial or pppd as root, because that means you're logged in as root, which isn't recommendable especially when connected to the net, IMHO.

You may want to create a group (e.g. 'dialout') to grant rw permission, rather than making everything world readable.
That worked for me, anyway.

Heinz
 
Old 04-12-2002, 01:44 PM   #5
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Original Poster
Rep: Reputation: 15
I'm unable to change the permissions of /dev/ttyS0 to anything other than this
lr-xr-xr-x 1 root root 5 Apr 11 21:47 /dev/ttyS0 -> tts/0
Yes, I am using root to do it.
There must be something other than this that needs to be altered though?
 
Old 04-12-2002, 01:59 PM   #6
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
I guess by looking at the file, that mandrake uses the ttySx files as symlinks to another file in this case tts/0. So change the symlink ttyS0 back to rwxrwxrwx (777) and chmod the tts/0 file instead to edit the actual device that is called.
 
Old 04-12-2002, 02:13 PM   #7
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Original Poster
Rep: Reputation: 15
crwxr-xr-x 1 at tty 4, 64 Apr 12 20:05 0
That's the actual device, as you can see its already 755.
I can't chmod the symlink as I mentioned in the last post. Also, there is a link from /dev/modem to /dev/ttyS0 and shows as:
lr-xr-xr-x 1 root root 5 Apr 12 19:37 /dev/modem -> ttyS0
 
Old 04-12-2002, 03:34 PM   #8
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 33
Posts: 38

Rep: Reputation: 15
Another way to get wvdial running I guess would be to suid root (chmod u+s /usr/bin/wvdial). This is not good practice, I admit, but AFAIK wvdial has no known vulnerabities that could be exploited this way (correct me if I'm wrong!).

You may want to restrict rw acces to /etc/wvdial.conf though, as your dial-up password is stored here in unencrypted form. wvdial sets the permissions to world readible by default...
 
Old 04-13-2002, 04:58 AM   #9
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
Groups

God, I can sympathise with you.
I just checked the groups that I (dad) am in:
dad is in bin,tty, disk,wwwadmin,mail,news,dialout,audio, firewall,video, trusted,modem,maildrop,users,cdrusers.

I think you understand a lot more about this than I do, but just thought I'd chuck in my idea.

As I said, I had exactly that problem, but it works now. If only I could remember what I did.
Hope you get it going!!
Peter
 
Old 04-13-2002, 08:34 AM   #10
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Original Poster
Rep: Reputation: 15
For Fluxbox

I've tried a+s on wvdial, wvdial.conf and pppd, but still no luck.
I've got no idea what else I can try. I thought there were only 4 files that would need modifying and I've tried all those now, so I don't have anymore ideas.
The main reason I wanted wvdial was so I can use gkrellm to connect/disconnect to the internet from Fluxbox/Blackbox.
 
Old 04-14-2002, 10:45 AM   #11
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 33
Posts: 38

Rep: Reputation: 15
Forgive me for asking, but are you sure your modem's OK?
 
Old 04-14-2002, 10:51 AM   #12
Heinz
Member
 
Registered: Apr 2002
Location: Amsterdam (NL)
Distribution: Fedora 33
Posts: 38

Rep: Reputation: 15
Quote:
Originally posted by Heinz
Forgive me for asking, but are you sure your modem's OK?
Oops, I can see it is. I'm sorry, couldn't cancel.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
wvdial problems in arch Pippin Linux - Software 1 09-30-2005 10:42 PM
WVDial problems... TehSnarf Linux - Newbie 2 12-04-2004 11:25 AM
wvdial problems on slack 10 exceed Linux - Hardware 1 11-05-2004 07:11 PM
problems with wvdial daste Linux - Software 1 01-17-2004 01:00 AM
wvdial problems jerryvb Linux - Networking 1 12-07-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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