Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
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.
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.
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
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
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
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?
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
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
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
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.
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
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
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.