Many thanks for your reply!! I'll try out your suggestions right away. On Fri, 21 Jul 2000 09:26:23 EDT, [EMAIL PROTECTED] said: > On Fri, 21 Jul 2000, Chris Rodliffe wrote: > > > > > I have some problems with kppp / pppd! > > > > I've been happily using kppp (under Xwindows) OK for about a year, > > except for a crash any time I tried using File Attachment with Kmail. > > > > So last week I tried a reinstall of Kmail / kppp / pppd. > > The everything stopped working :( > > > > I've since installed a new bigger hard drive with an all-new > > install of Red Hat 6.2 on it, the _only_ bits off the old system > > I copied across was my /home/cr directory, _after_ the install. > > But I still have the same problems: > > > > > > 1. As Root, I can receive pop mail OK, but when I click on 'Send > > Queued' in Kmail, the modem transmits but nothing more happens. > > The message doesn't go anywhere. > > > Look in your system log, probably /var/log/messages. It goes > _somewhere_, if only to an error message. Apparently not - Jul 23 01:26:36 argo kernel: CSLIP: code copyright 1989 Regents of the University of California Jul 23 01:26:36 argo kernel: PPP: version 2.3.7 (demand dialling) Jul 23 01:26:36 argo kernel: PPP line discipline registered. Jul 23 01:26:36 argo kernel: registered device ppp0 Jul 23 01:26:37 argo pppd[1669]: pppd 2.3.11 started by root, uid 0 Jul 23 01:26:37 argo pppd[1669]: Using interface ppp0 Jul 23 01:26:37 argo pppd[1669]: Connect: ppp0 <--> /dev/ttyS0 Jul 23 01:26:38 argo kernel: PPP BSD Compression module registered Jul 23 01:26:38 argo kernel: PPP Deflate Compression module registered Jul 23 01:26:38 argo pppd[1669]: local IP address 210.54.150.73 Jul 23 01:26:38 argo pppd[1669]: remote IP address 210.55.13.1 Jul 23 01:27:09 argo pppd[1669]: Terminating on signal 15. Jul 23 01:27:09 argo pppd[1669]: Connection terminated. Jul 23 01:27:09 argo pppd[1669]: Connect time 0.6 minutes. Jul 23 01:27:09 argo pppd[1669]: Sent 2088 bytes, received 11730 bytes. Jul 23 01:27:09 argo pppd[1669]: Exit. Between 01:26:38 when the connection was established and 01:27:09 when I quit, I received 3 emails on pop and tried to send two on SMTP. None of this appears in the log. I know the messages didn't go because (a) my modem lights flickered but not long enough for the body of a message and (b) they were to a mailing list and I always get a copy of my own message back - but these haven't come back. And (c), Kmail hasn't moved them to the Sent folder. And there are no on-screen error messages unless kppp isn't running _or_ I change the SMTP adrdress to a wrong one. Looking at other logs, I see from var/log/maillog that Sendmail started up earlier - last entry is: Jul 23 00:37:02 argo sendmail[456]: starting daemon (8.9.3): SMTP+queueing@01:00:00 I've definitely got Kmail configured to use SMTP not sendmail, I suppose Sendmail couldn't be swallowing it somehow? More likely, I think, is that my ISP's SMTP computer is, for some reason, sending back some sort of message that tells Kmail or SMTP or whatever not to send the emails. I tried adding the debug option to pppd (using the kppp setup screen) but with no change in the result. Maybe what I need is a readout of _all_ the traffic between SMTP and Kmail. > > If kppp _isn't_ running I get an error message, 'Cannot open > > SMTP connection to host mail.orcon.co.nz'. I get the > > same message if I deliberately change the host name to an > > incorrect one. > > > > > > 2. As user 'cr', even though I've given myself superuser > > privileges, when I click on kppp in Xwindows it opens up > > a box to ask for the Root password, which I enter, then kppp > > just goes away. It doesn't start. > > > > Logging out straight after leaves the error message: > > > > AUDIT: Sat Jul 22 11:09:29 2000: 3395 X: client 15 rejected from local > host > > Auth name: MIT-MAGIC-COOKIE-1 ID: -1 > > Xlib: connection to ":0.0" refused by server > > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > > kppp: cannot connect to X server: 0 > > > > I can imagine the ":0.0" is something to do with a missing DNS > > number, alternatively it could be that something is returning a > > wrong version number, as I read somewhere that some versions of > > kppp or pppd may do if used with the wrong kernel - but _all_ my > > current setup (other than my /home/cr directory) is freshly loaded > > off a RedHat 6.2 CD-ROM. > > None of the above. :0.0 is the DISPLAY= value of the first X > server. kppp is trying as root to connect to the X server, but by > default only the user who started X may connect. I don't know if kppp > still needs to be suid; if it does, you can monkey with xauth to give > root a magic cookie to connect to cr's X server. > > If root will run > > xauth -f /home/cr/.Xauthority extract - :0|xauth merge - > > I think that might do it. xauth has a nice long man page. > > I didn't design kppp. I think it is idiotic that it should need to be > suid when it is pppd that does the real work anyway. Does it need to be suid? I know pppd does, I just made kppp suid while I was at it just in case.... Hmmm... looking at the kppp Help file, if I create a modem group and add myself (as a user) to that group, and make the modem read/writeable for that group, then I don't need to have kppp setuid. However it's usally shipped setuid as the author (he says) gets too much email from people who can't get kppp to work because they didn't have device permission for the modem. Okay, so I just tried that Xauth trick, but with kppp suid and _not_ suid (i.e. both ways), same thing still happens. I now get: AUDIT: Sun Jul 23 12:35:43 2000: 3461 X: client 14 rejected from local host Xlib: connection to ":0.0" refused by server Xlib: Client is not authorized to connect to server kppp: cannot connect to X server :0 Hmmm... I tried running that xauth line again, and now kppp's gone back to the original magic cookie message :( Acting on the Kppp Help file suggestion, I checked my modem file (I presume that means /dev/ttyS0 ) and changed it from crw------- to crw-rw-rw- which I guess means it's now useable by anyone. But still no joy with kppp. The battle continues :-) As root, typing kppp outside of X gets me 'kppp: cannot connect to X server' message, (fair enough, since X isn't running) Typing 'pppd' starts it and sends the ppp garbage to the screen. As user 'cr', typing kppp outside of X gets me a demand for a password, then the same 'cannot connect' message, but typing pppd gets me a 'bash: pppd: command not found' Since _both_ files are in the same directory with the same permissions and ownership (root), I don't know why kppp recognises me as user while pppd ignores me. I have no idea if that's relevant. > > > > Both kppp and pppd are set suid, doing ls -l in /usr/sbin > > shows them both as -rwsr-xr-x , owner root, group root. > > > > I must be missing something. Can anyone suggest where to look? > > > > cR > > (this message sent on my trusty old Acorn - not via Linux) > > > > > Lawson > >< Microsoft free environment > 8-) (One reason I'm using Linux, too! I do have one DOS / Win 3.1 partition on my drive, but I sure wasn't going to go to great lengths to 'upgrade' to Win95. And my Acorn, of course, is totally Microsoft free. :) Many thanks for the pointers - I've found the problem with troubleshooting Linux is not lack of information, but (surveys the 4" stack of HOWTO and other printouts on his desk) finding the piece that applies. I really am impressed by how quick to help people are on this list. I owuld have loved to report success, but not so far.... Chris - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.linux-learn.org/faqs
