Edgy-Penguins - "Linux for Non-Geeks" - How-To Guides - Root-Free KPPP
Root-Free KPPP
Introduction: If you connect to the Internet via a dial-up modem, and use KPPP to do so, you may well have found that having to type your root password every time you run KPPP can get a bit tiring, if not annoying. When I first started out in the LInux world, I found myself in that predicament, but after entering the world of broadband, I sort of forgot that bit of negative passion. A recent message from a reader, suffering from this same annoyance, brought the topic back to mind, and here is the work-around I had earlier culled from the Red Hat (or was it Fedora) mailing-list archives. I've step-by-stepped the process up quite a bit, of course, to make it easy for anyone to understand and do.

By the way, the title of this guide, Root-Free KPPP, is not totally accurate. While you will no longer have to type in your root password before using KPPP, it will actually still be running as root.

NOTE: After completing this task, you may find that your KPPP settings will have disappeared. That being the case, be sure you have a paper copy of all the settings required for you to connect to your provider before going any further.


How to Do it:

  • Open a terminal window by clicking the terminal launcher you placed on your panel in Chapter 3 (or just go to the main menu and select System Tools > Terminal), and then become root (type su [ENTER]; root password [ENTER]).
  • Next type: rm /usr/bin/kppp and then hit [ENTER]. This removes the kppp link that you are calling to when you run kppp from the menu.
  • You will now be asked: "rm: remove symbolic link`/usr/bin/kppp'?" Type y and hit [ENTER]. This, of course, confirms that you do indeed want to remove the link.
  • Now use the link command (ln) to create a fresh link to the real KPPP (located in /usr/sbin) by typing:
     ln -s /usr/sbin/kppp /usr/bin/kppp and then hit [ENTER].
  • Finally, change the permissions of the real KPPP by typing chmod 4755 /usr/sbin/kppp and then hitting [ENTER].
  • You can now exit out of root mode (and the terminal): exit [ENTER], exit [ENTER].

And that is all there is to it. Now, just run KPPP again, input your connection settings again, and you will be ready to roll, keystroke free, forever after.

Navigate
How-To Guides Main
Linux for Non-Geeks Main Edgy Penguins Main