You are not logged in.

1

Wednesday, March 14th 2007, 12:21pm

kppp problem with otion file (Suse)

hello,

I'm having a problem similar to the one described in the KPPP FAQ (http://developer.kde.org/~kppp/faq.html, Dial-up failures with exit code 2 (SUSE 9.x))
but not quite the same.

I can dial out as root, but as normal user I get:

Can't open options file /etc/ppp/options: Permission denied


I have:
Suse 10.1
Linux-xadi 2.6.16.13-4-default
Qt 3.3.5
KDE 3.5.1 Level "a"
KPPP 2.3.2
pppd 2.4.3

the file /etc/ppp/peers/kppp exists.


thanks for any help

2

Wednesday, March 14th 2007, 3:43pm

you can try to give kppp the SUID bit with the command

Source code

1
chmod +s /opt/kde3/bin/kppp


(as root)
Help mee om KDE 3.5.5 in het Nederlands te vertalen

3

Thursday, March 15th 2007, 10:19am

well, I did it and now I get:

Can't open options file /etc/ppp/filters: Permission denied ;(

What about the SUID bit the manual talks about that should give root privileges to the core kppp actions?

4

Thursday, March 15th 2007, 2:53pm

yep, if you set the suid bit for kppp, it runs with the priviliges of root. So if kppp runs good as root user, it should also run good with the SUID bit turned on.
You could check the properties of the kppp binary if the SUID-bit is set correctly.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

5

Friday, March 16th 2007, 12:01pm

Quoted

Originally posted by Rinse
yep, if you set the suid bit for kppp, it runs with the priviliges of root. So if kppp runs good as root user, it should also run good with the SUID bit turned on.
You could check the properties of the kppp binary if the SUID-bit is set correctly.


This is what I know:

1. Kppp runs good as root user.
Running from terminal it gives the following message at start:

kbuildsycoca running...

2. The SUID, GID and sticky bits are on.

3. When I run as normal user, Kppp calls the provider, authenticates correctly but then fails when launching pppd. Running from terminal I get:

....
pppd: Can't open options file /etc/ppp/filters: Permission denied
it was pppd that died
pppd exited with return value 2
sending 6418 a SIGUSR1
....

I actually don't have a clue. Please help !

6

Wednesday, March 21st 2007, 9:41pm

RE: kppp problem with option file (Suse): solved !

well I managed to solve my little problem by adding myself to the "dialout" group (with Kuser).

Do you think this is dangerous or wrong somehow?

p.s.: for me this thread is closed. Do I close it or the administrator?

Thanks anyway for the patience.

p.s.2: I'm switching to ADSL so I guess I'll be back soon with brand new questions ;)

Cheers
Nick

7

Thursday, March 22nd 2007, 12:25am

RE: kppp problem with option file (Suse): solved !

Quoted

Originally posted by domenicobruno
well I managed to solve my little problem by adding myself to the "dialout" group (with Kuser).

Ah nice!!

Quoted


Do you think this is dangerous or wrong somehow?

well, i expected that you would be member of dialout by default :o)
That group is meant for this purpose.

Quoted


p.s.: for me this thread is closed. Do I close it or the administrator?

threads usually aren't closed.

Quoted


p.s.2: I'm switching to ADSL so I guess I'll be back soon with brand new questions ;)

make sure you get a ethernet/multi pc modem.
they can be configured very easily (e.g. just set your network card to DHCP)
Help mee om KDE 3.5.5 in het Nederlands te vertalen