Dear Wolfgang,
The fact kppp can't open /dev/modem (you specified it in your kppprc) is
really strange if you state the following device protections:
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
Could you retry from your user account a run of
$ /path/to/efax -vewinchmart
and tell me whether efax successfully opens /dev/modem
Next the device ownership for /dev/536ep I document in my
http://vouters.dyndns.org/Intel/Intel-Readme.html document on my Web site is
$ ls -l /dev/536*
crw-rw-rw- 1 root root 240, 1 jan 22 13:08 /dev/536ep
crw-rw---- 1 root root 240, 1 jan 22 13:08 /dev/536ep0
why do you have root:dialout when I document root:root as the ownership ????
If I check it live, I have:
[philippe@victor ~]$ sudo ls -l /dev/536ep*
crw-rw-rw-. 1 root root 240, 1 Mar 5 00:58 /dev/536ep
crw-------. 1 root root 240, 1 Mar 3 22:03 /dev/536ep0
and I face no apparent misbehavior with kppp, minicom or efax under
Linux Fedora 16.
Philippe
Le 05/03/2012 19:33, Philippe Vouters a écrit :
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/
--
Philippe Vouters (Fontainebleau/France)
URL: http://vouters.dyndns.org/