LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-04-2006, 10:07 AM   #1
spoody_goon
Member
 
Registered: Sep 2003
Location: Michigan USA
Distribution: Mandrake, DamnSmallLinux, VectorLinux
Posts: 416

Rep: Reputation: 30
kppp crash as user not as root


I've read many posts and tried the suggestions but I must be missing something. I can use kppp to connect to the internet as root but not as user. As user I get:
Code:
Opener: received SetSecret
Opener: received OpenLock

Opener: received OpenDevice
Opener: received ExecPPPDaemon
segmentation fault
And then it crashed like it was killed


I am using:
-Slackware 11
-Kernel 2.6.18
-KDE
-and martain_modem for a modem driver

I am willing to try anything suggested even if I have already tried it.

Thank you.
 
Old 12-05-2006, 02:02 PM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi spoody_goon,

First you need to identify where is the kppp program with the command
Code:
which kppp
It will display the directory where kppp is installed, for example, /usr/lib/kde3/bin/kppp; then enter the command
Code:
ls -l /usr/lib/kde3/bin/kppp
It will display the attributes of the file
Code:
-rwsr-xr-x  1 root root 543096 2005-07-25 10:50 /usr/lib/kde3/bin/kppp
If the first permission letters aren't "rws" or the user/group are not root as shown on the above display, this is your problem; In this case, as root enter the commands
Code:
chown root.root /usr/lib/kde3/bin/kppp
chmod u+s /usr/lib/kde3/kppp
Remember to replace the "/usr/lib/kde3" by the directory you found on the first command in this post.

The kppp must be setuid; it must always run as root.
 
Old 12-05-2006, 02:15 PM   #3
spoody_goon
Member
 
Registered: Sep 2003
Location: Michigan USA
Distribution: Mandrake, DamnSmallLinux, VectorLinux
Posts: 416

Original Poster
Rep: Reputation: 30
Thank you, I have followed your instructions. kppp was set to -rwsr-xr-x but I executed chown and chmod anyway just to be sure.

I may be wrong but if the permissions was wrong I don't think I would be able to execute kppp at all instead of just having it crash, when it initializes the modem?

Do you have any other suggestions?

Again Thanks
 
Old 12-05-2006, 02:39 PM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Repeat the same commands for pppd. It also has to run as root and must be setuid. The problem may be on it. The segmentation fault can occur on such case if it is not conveniently attended; for example, if you try to open a file that you have not permission, you will give a NULL pointer to it; if you check this pointer before use it, you may display a message like "file xyz could not be opened". However, if you assume that you always will open that file with no problems, on the first read you will have a segmentation fault.

As an example, this c source file will show you:
Code:
#include "stdio.h"

int main(void)
{
  FILE *fs = NULL
      ;

  char txt[16]
      ;
  while (fgets(txt, sizeof(txt), fs))
  {
    break;
  }
}
Save this file as xyz.c, compile it with the following command
Code:
gcc -o xyz xyz.c
and run it with
Code:
./xyz
 
  


Reply

Tags
kppp, modem, slackware11


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running KPPP as a user, and not root. RoaCh Of DisCor Linux - Software 5 06-28-2004 05:38 AM
Kppp without root CatSC Red Hat 2 11-06-2003 03:05 PM
KPPP can't connect if I'm not root White R4bbit Linux - Software 10 10-24-2003 02:24 PM
kppp non root response bdika Linux - General 3 09-01-2003 09:29 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM


All times are GMT -5. The time now is 09:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration