rootd problems

From: stefan kluth (skluth@mh1.lbl.gov)
Date: Fri Jun 26 1998 - 01:03:47 MEST


Hi,

I am trying to get rootd to work on my Linux box. I had the following
problems:

o) I didn't find rootd in the root 2.00/8 Linux/egcs distribution. I
   ftp'ed rootd.tar.gz and installed rootd from the source. This seems
   to have worked ok, but I did get some compiler warnings:
persil:~/rootd> make
g++ -O -Wall   -fno-rtti -fno-exceptions -c ROOTD_rootd.cxx
ROOTD_rootd.cxx: In function `void RootdUser(const char *)':
ROOTD_rootd.cxx:636: warning: comparison between signed and unsigned
ROOTD_rootd.cxx: In function `void RootdPass(const char *)':
ROOTD_rootd.cxx:710: warning: implicit declaration of function `int
crypt(...)'
ROOTD_rootd.cxx:710: warning: assignment to `char *' from `int' lacks a
cast
g++ -O -Wall   -fno-rtti -fno-exceptions -c ROOTD_daemon.cxx
g++ -O -Wall   -fno-rtti -fno-exceptions -c ROOTD_net.cxx
ROOTD_net.cxx: In function `int NetOpen(int)':
ROOTD_net.cxx:185: warning: passing `int *' as argument 3 of
`getpeername(int, sockaddr *, unsigned int *)' changes signedness
ROOTD_net.cxx:213: warning: passing `int *' as argument 3 of `accept(int,
sockaddr *, unsigned int *)' changes signedness
g++ -O -Wall   -fno-rtti -fno-exceptions -c ROOTD_error.cxx
g++ -O -o rootd ROOTD_rootd.o ROOTD_daemon.o ROOTD_net.o ROOTD_error.o
-lm -lcrypt
rootd done

o) Then I started rootd -p 5151 and tried to connect to the server from a
   different machine. For some reason, the server would not authenticate
   the password, thus refusing the connection. Here is the root session
   excerpt:
[online04] ~/scratch > root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   2.00/08      17 June 1998   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

CINT/ROOT C/C++ Interpreter version 5.13.55, May 16 1998
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TFile *f = TFile::Open("root://persil:5151/","new");
Name (persil:skluth): 
Password: 
Error in <TNetFile::Authenticate>: wrong passwd
Error in <TNetFile::TNetFile>: autentication failed for host persil

And here is what goes on in the system log of the Linux-server:

----- after starting rootd ----------
Jun 25 15:47:43 persil rootd[14273]: NetInit: socket 0 listening on port
5151
Jun 25 15:47:43 persil rootd[14273]: main: pid = 14273, gInetdFlag = 0

----- after issuing the TFile* f=TFile::Open(...) command on the client---
Jun 25 15:48:06 persil rootd[14273]: NetOpen: accepted connection from
host online04.lbl.gov
Jun 25 15:48:06 persil rootd[14276]: NetOpen: connection established via
socket 2
Jun 25 15:48:06 persil rootd[14276]: NetSetOptions: set TCP_NODELAY
Jun 25 15:48:06 persil rootd[14276]: NetSetOptions: set SO_KEEPALIVE
Jun 25 15:48:06 persil rootd[14276]: NetSetOptions: set SO_SNDBUF 65536
Jun 25 15:48:06 persil rootd[14276]: NetSetOptions: set SO_RCVBUF 65536
Jun 25 15:48:06 persil tcplogd: port 5151 connection attempt from
unknown@online04.lbl.gov [128.3.5.51]
Jun 25 15:48:08 persil rootd[14276]: RootdLoop: 2000 -- skluth
Jun 25 15:48:35 persil rootd[14276]: RootdPass: invalid password for user
skluth
Jun 25 15:48:35 persil rootd[14276]: RootdCloseTab: file /tmp/rootdtab
does not exist
Jun 25 15:48:35 persil last message repeated 2 times
Jun 25 15:48:35 persil rootd[14276]: SigPipe: got a SIGPIPE
Jun 25 15:48:35 persil rootd[14276]: RootdCloseTab: file /tmp/rootdtab
does not exist
Jun 25 15:48:35 persil rootd[14276]: NetSendRaw: Sendn error

After that rootd goes crazy for a while and produces the last two messages
many times. 


Any clues? cheers, Stefan

---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
-  LBNL, MS 50A 2160       -  phone:  +1 510 495 2376  -  |/  |/      -
-  1 Cyclotron Rd.         -  fax:    +1 510 495 2957  -  |\/\|\/\|'  -
---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET