geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips
 parent


Re: HOWTO : Setup KPPP to Dialup as Normal User
by Azureash on Tuesday February 11, @07:37PM
This article doesn't address the most frequent issue with using kppp as a non-root user, which is PAM. The problem is that KDE is launching kppp through something called consolehelper, which is a PAM application (Pluggable Authentication Module, errr..something.) To fix this:

1) Open /etc/pam.d/kppp (the kppp PAM conf file.) You should see a line (often on line 4 on RH installs) that reads:

auth required /lib/security/pam_stack.so service=system-auth

2) Change "required" to "sufficient".
3) Save and close the file.

Voila! Any user can now use kppp, without being prompted for the root password.

Note: If you still want to place some limits on who uses kppp, create an /etc/kppp.allow file (if one doesn't already exists) and put the names of the users you want to access kppp in it.
Sample:

# /etc/kppp.allow
# comment lines like this are ignored
# as well as empty lines

sally
fred

In closing, I'd say that PAM is a cool program, but was the WRONG choice for launching kppp...

Related Links
  • Articles on KDE
  • Also by Azureash
  • Contact author

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: HOWTO : Setup KPPP to Dialup as Normal User
    by fadumpt on Wednesday July 02, @11:49AM
    I'm using Suse 8.2 and I don't have Kppp in /etc/pam.d

    I have PPP though and I changed the 2 auth's to sufficient:
    (which didn't help at all)

    #%PAM-1.0
    auth sufficient pam_unix2.so # set_secrpc
    auth sufficient pam_nologin.so
    account required pam_unix2.so
    password required pam_unix2.so # strict=false
    session required pam_unix2.so none # debug or trace
    [ Add a Reply to this ]
    Re: HOWTO : Setup KPPP to Dialup as Normal User
    by JimP on Tuesday March 23, @12:55AM
    This dosnt work under RedHat 9.0 - it stll prompts for root PW.

    How about just running pppd directly.
    [ Add a Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]