Dear Sue, In the case of anonymous usage there indeed a small problem with the default values of some new internal flags. This will be fixed soon in CVS. For the time being you should be able to get the behaviour you mention by adding the following env variables in your $HOME/.rootrc UsrPwd.Crypt 0 UsrPwd.ReUse 0 UsrPwd.LoginPrompt 0 You should then be able to open the file with root[0] TAuthenticate::SetGlobalUser("anonymous"); root[1] TNetFile* netfile = new TNetFile("root://localhost//mydatafile.root"); or directly root[1] TNetFile* netfile = new TNetFile("root://anonymous@localhost//mydatafile.root"); with no prompt and password automatically generated in the form <local_username>@<local_host_fqdn> Please let me know if it works. Thanks for having reported the problem and sorry for the inconvenience. Gerri Ganis On Tue, 4 Nov 2003, Sue Kasahara wrote: > Hi roottalk, > The behavior of anonymous rootd usage has apparently changed between root v3.05/07 > and root v3.10/01. With root v3.05/07, I can access a rootd server set up for anonymous > usage using the following commands: > > root[0] TAuthenticate::SetGlobalUser("anonymous"); > root[1] TAuthenticate::SetGlobalPasswd("schubert@hep.umn.edu"); > root[2] TNetFile* netfile = new TNetFile("root://localhost//mydatafile.root"); > > The anonymous rootd server is set up as per the instructions on: > http://root.cern.ch/root/NetFile.html and mydatafile.root is located in the home directory > specified in the /etc/passwd file. The rootd daemon is started from the xinetd.d superdaemon. > > Running the same set of commands and setup procedures using root v3.10/01 for both the root session and > rootd binary, I find that I am prompted for a username even though this has been set globally: > > root[0] TAuthenticate::SetGlobalUser("anonymous"); > root[1] TAuthenticate::SetGlobalPasswd("schubert@hep.umn.edu"); > root[2] TNetFile* netfile = new TNetFile("root://localhost//mydatafile.root"); > Name (localhost:kasahara): > > and that if I try to enter anonymous as the username at the prompt, I get a segv. > I'm wondering what the procedure is for connecting to a rootd server anonymously > with 3.10/01. I would like for this to procedure to not require a prompt for username/passwd. > I am using gcc 3.2.2 on rh linux 9.0. > Thanks in advance for your help! > -Sue Kasahara > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET