Dear Wolfgang,
The code correctly starts up if-up:
10346 execve("/etc/ppp/ip-up", ["/etc/ppp/ip-up", "ppp0",
"/dev/536ep", "57600", "212.144.133.153", "145.253.1.100"],
["ORIG_UID=0", "PPPLOGNAME=root", "DEVICE=/dev/536ep",
"PPPD_PID=10340", "SPEED=57600", "IFNAME=ppp0",
"IPLOCAL=212.144.133.153", "IPREMOTE=145.253.1.100",
"DNS1=195.50.140.248", "DNS2=145.253.2.203", "USEPEERDNS=1"]) = 0
It opens:
10357 open("/var/run/netconfig//ppp0/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 5
which succeed
Then it activates:
10362 execve("/etc/netconfig.d//dns-resolver",
["/etc/netconfig.d//dns-resolver"], ["PPPD_PID=10340",
"PPPLOGNAME=root", "TERM=raw", "SPEED=57600",
"IPREMOTE=145.253.1.100", "IFNAME=ppp0", "DNS2=145.253.2.203",
"DNS1=195.50.140.248", "PWD=/", "SHLVL=2", "DEVICE=/dev/536ep",
"USEPEERDNS=1", "ORIG_UID=0", "IPLOCAL=212.144.133.153",
"_=/etc/netconfig.d//dns-resolver"]) = 0
With DNS1 and DNS2 which should be provided by your ISP.
Then it opens:
10362 open("/etc/sysconfig/network/config", O_RDONLY|O_LARGEFILE) = 5
10362 fstat64(5, {st_dev=makedev(253, 1), st_ino=272660,
st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=32, st_size=12830, st_atime=2012/03/05-17:08:31,
st_mtime=2012/02/29-23:32:58, st_ctime=2012/02/29-23:32:58}) = 0
which succeeds.
So the best place where to look is now /var/log/messages.
Before you run kppp from a root account, can you create a new terminal
and issue tail -f /var/log/messages and check what pppd says ?
Then rerun kppp normally (i.e.: without strace)
Philippe
Le 05/03/2012 22:32, Wolfgang Junker a écrit :
Philippe,
to put kppprc into /root/.kde4/share/config was really the right point!
Having done this and trying $kppp as su it still crashes, but with the
hint to first set
export $(dbus-launch).
So I did this (whatever it means...), and kppp runs under su *and*
under
user! It connects to my internet provider, but I don't get any
throughput, ping says
Network is unreachable
and ssh says
Could not resolve hostname
so this seems to be the old DNS-problem. I did again a
strace -v -e trace=all -f -o kppp.log kppp (this time as su)
and append the kppp.log (it is rather long, sorry for the spam to all
others...).
I can't try efax as a user, because it sits in my root-directory... And
here the rights of my /dev/536ep0:
crw------- 1 root root 240, 1 5. Mär 20:05 536ep0
Wolfgang
On Mon, 5 Mar 2012, Philippe Vouters wrote:
Dear Wolfgang,
Now when executed as root, kppp attempts to open
/root/.kde4/share/config/kppprc and does not find it.
6841 stat64("/root/.kde4/share/config/kppprc", 0x8141d1c) = -1 ENOENT
(No such file or directory)
6841 lstat64("/root/.kde4/share/config/kppprc", 0xbfdfc170) = -1
ENOENT (No such file or directory)
You should really do the the following:
$ sudo mkdir /root/.kde4
$ sudo mkdir /root/.kde4/share
$ sudo mkdir /root/.kde4/share/config
$ sudo cp /home/junker/.kde4/share/config/kppprc
/root/.kde4/share/config/kppprc
Then from a root account:
# kppp
or from a user account:
$ sudo kppp
or identically from a user account:
$ su -c 'kppp'
Yours truly,
Philippe
Le 05/03/2012 20:34, Wolfgang Junker a écrit :
Dear Philippe,
this is right, I am doing kppp as user. For this I have changed the
rights of /usr/bin/kppp to
-rwsr-xr-x 1 root root 554352 22. Feb 2011 kppp
(This is how it worked for SUSE 10.3). If I do kppp as root, the
program
crashes rightaway. The "Permission denied" must somehow be an
artefact
of strace, I didn't get these messages before, and, as I said, I did
already get an internet connection with kppp (up to the DNS-issue)
with
precisely the present configuration. E.g. the rights of /dev/modem
are
as follows:
lrwxrwxrwx 1 root root 10 5. Mär 20:05 modem -> /dev/536ep
crw-rw-rw- 1 root dialout 240, 1 5. Mär 20:05 536ep
I tried now the $strace -v -e trace=all -f -o kppp.log kppp
as root, but, as I said, the program crashes. I append the
kppp.log-file
which was created.
Wolfgang
On Mon, 5 Mar 2012, Philippe Vouters wrote:
Dear Wolfgang,
As far as it seems you start kppp from your user account and not
from
a root account. This explains why you get all these
/etc/ppp/chap-secrets* "Permission denied".
You have this:
[philippe@victor ~]$ grep /etc/ppp/chap-secrets kppp.log
12745 open("/etc/ppp/chap-secrets.new",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES (Permission
denied)
12745 unlink("/etc/ppp/chap-secrets.old") = -1 ENOENT (No such
file or
directory)
12745 rename("/etc/ppp/chap-secrets", "/etc/ppp/chap-secrets.old") =
-1 EACCES (Permission denied)
12745 rename("/etc/ppp/chap-secrets.new", "/etc/ppp/chap-secrets") =
-1 ENOENT (No such file or directory)
12745 access("/etc/ppp/chap-secrets.old", F_OK) = -1 ENOENT (No such
file or directory)
Next you have:
12745 open("/dev/modem", O_RDWR|O_NOCTTY|O_NONBLOCK|O_LARGEFILE)
= -1
EACCES (Permission denied)
12745 write(2, "error opening modem device !\n", 29) = 29
Looks very strange if efax from a user account is able to open
/dev/modem ! Check for /dev/modem permissions. You might have change
the /dev/modem permissions for hylafax operations.
On my Fedora 16 computer, I have:
[philippe@victor ~]$ ls /usr/bin/kppp
/usr/bin/kppp
[philippe@victor ~]$ ls -l /usr/bin/kppp
lrwxrwxrwx. 1 root root 13 Mar 5 04:29 /usr/bin/kppp ->
consolehelper
[philippe@victor ~]$ ls -l /usr/sbin/kppp
-rwxr-xr-x. 1 root root 749004 Dec 3 07:28 /usr/sbin/kppp
If, from my user account, I:
$ strace -v -e trace=all -f -o kppp.vouters.log /usr/sbin/kppp
I see on my screen first that I am not allowed to run pppd unless it
the SUID bit (Capture 19:22:22.png)
Next a dialog to configure kppp (Capture 19:17:21.png).
In conclusion and under Fedora, the usual way is to call
/usr/bin/kppp
which activate a dialog prompting for root password (consolehelper
role), next activating /usr/sbin/kppp from a root context.
Your problem comes from you do not activate kppp from a root
context.
Hence all the permission denied.
Kind regards,
Philippe
Le 05/03/2012 18:47, Wolfgang Junker a écrit :
Dear Philippe,
my configuration file for kppp is .kde4/share/config/kppprc and
looks as
follows:
pppdArguments=
[Account0]
AccountingEnabled=0
AccountingFile=
Authentication=4
AutoDNS=1
AutoName=0
BeforeConnect=
BeforeDisconnect=
CallbackPhone=
CallbackType=0
Command=
DNS=145.253.2.11
DefaultRoute=0
DisconnectCommand=
Domain=
ExDNSDisabled=0
Gateway=0.0.0.0
IPAddr=0.0.0.0
Name=Arcor
Password=internet
Phonenumber=01920787
ScriptArguments=
ScriptCommands=
StorePassword=1
SubnetMask=0.0.0.0
Username=arcor
VolumeAccountingEnabled=0
pppdArguments=debug
[General]
DefaultAccount=Arcor
DefaultModem=Modem
NumberOfAccounts=1
NumberOfModems=1
PPPDebug=0
ShowLogWindow=1
[Graph]
Background=255,255,255
Enabled=true
InBytes=0,0,255
OutBytes=255,0,0
Text=0,0,0
[Modem0]
AnswerResponse=CONNECT
AnswerString=ATA
BusyResponse=BUSY
BusyWait=0
ConnectResponse=CONNECT
DLPResponse=DIGITAL LINE DETECTED
Device=/dev/modem
DialString=ATDT
Enter=CR/LF
EscapeGuardTime=50
EscapeResponse=OK
EscapeString=+++
FlowControl=Hardware [CRTSCTS]
HangUpResponse=OK
HangupString=+++ATH
InitDelay=50
InitResponse=OK
InitString=ATZ
InitString1=
Name=Modem
NoCarrierResponse=NO CARRIER
NoDialToneDetection=ATX3
NoDialToneResp=NO DIALTONE
PreInitDelay=50
RingResponse=RING
Speed=57600
Timeout=60
ToneDuration=70
UseLockFile=0
Volume=2
VolumeHigh=M1L3
VolumeMedium=M1L1
VolumeOff=M0L0
WaitForDialTone=1
[Modem1]
AnswerResponse=
AnswerString=
BusyResponse=
BusyWait=
ConnectResponse=
DLPResponse=
Device=
DialString=
Enter=
EscapeGuardTime=
EscapeResponse=
EscapeString=
FlowControl=
HangUpResponse=
HangupString=
InitDelay=
InitResponse=
InitString=
InitString1=
Name=
DLPResponse=
Device=
DialString=
Enter=
EscapeGuardTime=
EscapeResponse=
EscapeString=
FlowControl=
HangUpResponse=
HangupString=
InitDelay=
InitResponse=
InitString=
InitString1=
Name=
NoCarrierResponse=
NoDialToneDetection=
NoDialToneResp=
PreInitDelay=
RingResponse=
Speed=
Timeout=
ToneDuration=
UseLockFile=
Volume=
VolumeHigh=
VolumeMedium=
VolumeOff=
WaitForDialTone=
[WindowPosition]
WindowPositionConWinX=247
WindowPositionConWinY=0
WindowPositionStatWinX=567
WindowPositionStatWinY=0
.......................................................................
I append the result of $strace -v -e trace=all -f -o kppp.log kppp
to this mail.
Sincerely
Wolfgang
On Mon, 5 Mar 2012, Philippe Vouters wrote:
Dear Jacques, Wolfgang,
I just downloaded the adequate RPM for Fedora 16 containing kppp.
From
a root account, I ran strace over kppp. Because there are numerous
open calls, I edited the file and searched for the "kppp" string.
First kppp attempts to open /root/.kde/share/config/kppprc. From
this
it knows what it must do, therefore directly proposing for me a
connection my old tiscali provider. Next as I previously specified
/dev/modem in this configuration, it opens /dev/modem and tries to
connect. Because the modem is no longer connected to an analog
phone
line, kppp fails with a NO DIALTONE. So its sounds so far very
sane.
Yours truly,
Philippe
[root@victor ~]# cat /root/.kde/share/config/kppprc
[Account0]
AccountingEnabled=0
AccountingFile=
Authentication=4
AutoDNS=1
AutoName=0
BeforeConnect=
BeforeDisconnect=
CallbackPhone=
CallbackType=0
Command=
DNS=
DefaultRoute=1
DisconnectCommand=
Domain=
ExDNSDisabled=0
Gateway=0.0.0.0
IPAddr=0.0.0.0
Name=tiscali
Password=100556
Phonenumber=0860015555
ScriptArguments=
ScriptCommands=
StorePassword=1
SubnetMask=0.0.0.0
Username=pvou0030@xxxxxxxxxx
VolumeAccountingEnabled=0
pppdArguments=debug
[General]
DefaultAccount=tiscali
DefaultModem=536EP
NumberOfAccounts=1
NumberOfModems=1
PPPDebug=0
QuitOnDisconnect=1
ShowLogWindow=0
pppdTimeout=60
[Graph]
Background=255,255,255
Enabled=true
InBytes=0,0,255
OutBytes=255,0,0
Text=0,0,0
[Modem0]
AnswerResponse=CONNECT
AnswerString=ATA
BusyResponse=BUSY
BusyWait=52
ConnectResponse=CONNECT
DLPResponse=DIGITAL LINE DETECTED
Device=/dev/modem
DialString=ATDT
Enter=CR/LF
EscapeGuardTime=255
EscapeResponse=OK
EscapeString=+++
FlowControl=Hardware [CRTSCTS]
HangUpResponse=OK
HangupString=+++ATH
InitDelay=73
InitResponse=OK
InitString=AT&F E0 Q0 X4 S0=0 &D2 &C1 &S0 V1 W2
InitString1=AT+GCI=3D
Name=536EP
NoCarrierResponse=NO CARRIER
NoDialToneDetection=ATX3
NoDialToneResp=NO DIALTONE
PreInitDelay=53
RingResponse=RING
Speed=115200
Timeout=12
ToneDuration=36
UseLockFile=0
Volume=2
VolumeHigh=M1L3
VolumeMedium=M1L1
VolumeOff=M0L0
WaitForDialTone=1
[WindowPosition]
WindowPositionConWinX=5
WindowPositionConWinY=24
WindowPositionStatWinX=279
WindowPositionStatWinY=354
--
Philippe Vouters (Fontainebleau/France)
URL: http://vouters.dyndns.org/