schulte@pktw08.phy.tu-dresden.de wrote: > // ---------- > i then tryed to use the rootdeamon. i believe that for people like me, where the sys-add > is on vacation it may be interesting to expand the statement: > compile rootd with -DR__SHADOWPW (see $ROOTSYS/rootd/Module.mk) > from : http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/NetFile.html?rootd#first_hit > > to: > a) compile root as always > b) rm .../rootd/src/*.o > c) rm .../bin.rootd > e) un-comment: SHADOWFLAGS := -DR__SHADOWPW > d) gamke > e) gmake install > f) then change /etc/services and /etc/inetd.conf as in the manual > (correct??) > > i now can write files from one machine to the other, but i am a bit confused about > the statement(s): > 1.Setting it globally via the static TAuthenticate functions TAuthenticate::SetUser() and > TAuthenticate::SetPasswd() > http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk01/0143.html?h2root#first_hit > > 2. setting it globally via TNetFile::SetUser(), TNetFile::SetPasswd() (manual) > The correct way to set the login and passwd is via: TAuthenticate::SetGlobalUser("rdm") TAuthenticate::SetGlobalPasswd("..xx.x..") TFile *f = new TNetFile("root://localhost/root/RDM/hsimple.root") <no uid/passwd prompt> The NetFile.html was incorrect. Fixed now. Otherwise you also could use the ~/.rootnetrc file method. Cheers, Fons. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:53 MET