DebianThis forum is for the discussion of Debian Linux.
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.
Problem is, I can't seem to get it to recognize my modem as a regular user.
I just did a Knoppix hard-drive install to get an up-to-date Debian system at home. I configured and loaded the correct modules for my winmodem (HSP Micromodem 56). Now everything works great as long as I login as root and run KPPP from there.
As a regular user, I can't even run KPPP. So, I chmod'ed it to 777 and was able to bring it up. But, it won't recognize the modem ("Unable to locate modem"). Once I switch to root and restart KPPP, its fine again. I don't think connecting to the internet as root is such a good idea though...
I'm thinking there's a simple solution to this. I just don't know what it is, and googling has not helped out yet.
Distribution: Red Hat Linux 9, Fedora Core 1, *Fedora Core 2*
Posts: 74
Rep:
Yes, you cant run KPPP as the normal user. You will have to run it as root =(. But there is a work around it. If you are using KDE then when you try launching KPPP it will say you require root permissions to run this program and ask for the root password. All you need to do is provide it with the root password and it will launch the program and then you will be able to connect to the internet.
check and ensure that your normal user is a member of "dip" and "dialout" groups. You are obviously using KDE, so open user manager, click on the normal user name, then edit, then groups, and ensure you are a member of both groups. Save the file. then try kppp as normal user.
The reason why sudo kppp and su - -c kppp don't work on debian, is that for security reasons each user must authenticate him/herself to the Xserver before launching windows on another user's X session. You can do that with the xauth command.
xauth list $DISPLAY as the user with the X session,
xauth add $DISPLAY <auth_cookies> as the other user.
However this is neither elegant nor practical.
Debian users will usually insist that it is far better to avoid kppp and use pppd directly as root (which is not insecure):
su -
pppd call provider
...or to use the pon / poff scripts.
If you do need however to use kppp as a user, you can do the following that worked for me:
- Add your user to the 'dip' group, so that you can use kppp
- Add your user to the 'dialout' group, so that you can access the serial ports
- Edit /etc/ppp/options and put 'privgroup dip' at the end of the file, so that you can use privileged pppd options (like noauth)
- Start kppp, find the pppd options button, and add 'noauth'.
It is not very secure (the group dip can be exploited) but it is far better than running kppp as root. Also, it is logical that Knoppix behaves much like Debian, since it is derived from it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.