Find the answer to your Linux question:
Results 1 to 8 of 8
hello everybody! I have a dial up connection set up with kppp in the root account which works fine and i want to use the same connection for other users ...
  1. #1
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168

    kppp root/user problem

    hello everybody!

    I have a dial up connection set up with kppp in the root account which works fine and i want to use the same connection for other users as well. I've set up the connection in other accounts however when i go to connect to the internet or query the modem kppp says that its unable to open the modem !?!

    As well as this when i first click on kppp on the desktop it tells me;

    you dont have sufficient permission to run /usr/sbin/pppd

    please make sure that kppp is owned by root and has the
    SUID bit set


    what does this mean and how is it solved?



    i'm using Suse 10.0 with an external serial modem

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    execute this
    Code:
    chmod +s /usr/bin/rfcomm




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Posts
    27

    Did it work?

    Quote Originally Posted by the bassinvader
    hello everybody!

    I have a dial up connection set up with kppp in the root account which works fine and i want to use the same connection for other users as well. I've set up the connection in other accounts however when i go to connect to the internet or query the modem kppp says that its unable to open the
    modem
    !?!

    As well as this when i first click on kppp on the desktop it tells me;

    you dont have sufficient permission to run /usr/sbin/pppd

    please make sure that kppp is owned by root and has the
    SUID bit set


    what does this mean and how is it solved?

    i'm using Suse 10.0 with an external serial modem
    Saw the answer you got . . . tried it . . . didn't work.

    Did it work for you?

    yankeeco

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by yankeeco
    Saw the answer you got . . . tried it . . . didn't work.
    Did it work for you?
    what error message are you getting? post exact error message here..






    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168
    well yes and no

    i executed devils caspers code but it didnt do anything on its own (sorry)

    So i started to look through the archives for advice (i know ...what i should
    have done in the first place) and took all the advice that you got yankeeco
    and tried it out. This is what i did in order:

    Executed chmod +s /usr/bin/rfcomm
    then i lost my rag and deleted all the modem info in kppp and re wrote it
    ( this gave me the "unable to create lock file" message)
    then i executed chmod u+s /usr/bin/rfcomm
    and finally i checked the UUCP box for my user account

    the result of all this was that kppp can now detect the modem with no problems
    however i still get this message when i first start up kppp:

    you dont have sufficient permission to run
    /usr/sbin/pppd
    please make sure that kppp is owned by root and has the SUID
    bit set.


    Hope this is of help to you yankeeco but i cant remember what modem you're
    using. Just for the record i've got an external serial by Zoom.

    Unfortunatly this isnt the end of the problem. After dialing i get
    a message like this:

    pppd daemon died unexpectadly
    Exit status 3
    see `man pppdŽ for an explanation of the error codes
    or take a look at the kppp FAQ on http://developer.kde.
    org/~kppp/index.html


    the ppp log says this:
    cannot open any of these log files
    /var/log/syslog.ppp
    /var/log/syslog
    /var/log/messages


    if you've got any ideas devils casper send 'em my way please.

    Thanx

  6. #6
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168

    Smile is this a solution??

    Hi guys .

    I've been searchin through the net for a solution to my problem, and maybe i've found something!!! I'm not sure though but it seems to have worked on older distro's that have had exactly the same problem....well thats what i've been reading, but being a linux noob and not knowing my way around yet i want someone to check exactly what i'm doing so i dont break anything!!

    Here's the instructions i've found:

    I have the solution
    Submitted by dhlawrence on Sat, 04/30/2005 - 11:09.
    Just solved this two nights ago. Here we go.
    1) open etc/ppp/peers/kppp-options and remove the # in front
    of noauth if it is there.
    2) open etc/ppp/pap-secrets and make sure your isp username
    and password are there, again with no # in front of the line.
    3) open etc/ppp/peers/provider and first make sure the correct
    modem is listed, mine is on com port 2 so my line reads
    /dev/ttyS1. Then this is the biggie because this line was very
    wrong on mine. The chat script line should read :
    connect "/usr/sbin/chat -v -f /etc/ppp/peers/provider"
    That should do it.
    By the way when putting settings in kppp (click configure button)
    i used PAP and CR/LF and CRTSCTS and 115200 and /dev/ttyS1(which in
    my case is com port 2).


    will it set my hair on fire or what?
    " I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."

  7. #7
    Just Joined!
    Join Date
    Sep 2006
    Posts
    27
    [QUOTE=the bassinvader]
    Here's the instructions i've found:

    Submitted by dhlawrence on Sat, 04/30/2005 - 11:09.
    Just solved this two nights ago. Here we go.

    1) open etc/ppp/peers/kppp-options and remove the # in front
    of noauth if it is there.

    2) open etc/ppp/pap-secrets and make sure your isp username
    and password are there, again with no # in front of the line.

    3) open etc/ppp/peers/provider and first make sure the correct
    modem is listed, mine is on com port 2 so my line reads
    /dev/ttyS1. Then this is the biggie because this line was very
    wrong on mine. The chat script line should read :
    connect "/usr/sbin/chat -v -f /etc/ppp/peers/provider"

    That should do it.

    By the way when putting settings in kppp (click configure button)
    i used PAP and CR/LF and CRTSCTS and 115200 and /dev/ttyS1(which in
    my case is com port 2).
    [/B]

    Saw what you have there and will have to try it.

    At this point I'm almost as familiar with using Linux in the Terminal mode as I was with MS/DOS so finding my way around in the "etc" directory is no longer a problem - just time consuming.

    The only reason I'm interested in this end of it is that I want to be able to fully exploit the abilities of "Contact" which I've found to be an excellent piece of PIM software.

    Oh, you asked what modem am I using . . .

    I'm using a Dell Inspiron 5100 laptop and the built in modem. When using Linux (which I do now far more often that the old MS XP OS)
    the built-in modem works just fine - only when I'm in ROOT but not at all when in what I call the primary user directory (PUD?)

    I'll keep you posted - and thanks for the interest!

    yankeeco

  8. #8
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168
    This is just an update for anybody who has the same problem that I had.

    Here's the solution that worked on my system:


    First in a konsole......su to root and type; chmod u+s /usr/bin/rfcomm


    The user will need read, write and execute permission in:
    kppp and /etc/resolv.conf

    And the user set uid box should be checked in;
    opt/kde3/bin/kppp

    After this I got accounts other than root on the internet and my headaches stopped!

    I don't know about any security implications so if theres anything terrible please feel free to tell me


    Later
    " I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...