Re: [ROOT] Problem runnig ROOT as normal user in MacOS X

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Sun Jul 28 2002 - 00:07:59 MEST


We use the tmpnam() function which should return a path to an accessable
tmp directory. As safe quick fix do chmod 777 /private/var/tmp.

--Fons

On Sat, 2002-07-27 at 18:13, cstrato wrote:
> Dear MacROOTers
> 
> I have just discoverd that I cannot run my programs in ROOT under
> MacOS X when I am logged in as a normal user (staff), since I get
> the following message:
> CAUTION: tmpfile /var/tmp/tmp.2.xxx-cint canīt open
> Error: could not create file /var/tmp/tmp.2.xxx-cint
> 
> Until now I was logged into MacOS X as single user (admin). However,
> like Linux people learn that they usually should not login as root,
> in OS X you should also create a normal user (staff) and not login
> as adminstrator. For this reason I created a user and downloaded ROOT
> from CVS into my user directory.
> 
> Using the ROOT version compiled in the user directory results in
> the error shown above, since a normal user is not able to access the
> /var directory which is a link to /private/var, where /private is
> the root home directory, and only root has read/write permissions
> to /private/var.
> 
> Do you know how I can solve this problem?
> 
> One possibility would be to chmod /private/var to all others, however,
> I am not sure if this is a good idea, since I do not know why Apple
> has made a link from /var to /private/var. There must be a reason?
> 
> Maybe, the best possibility would be if cint would use its own
> /tmp directory or check first if the user has created a /User/tmp
> driectory.
> 
> Thank you in advance for your help
> 
> Best regards
> Christian
> _._._._._._._._._._._._._._._._._
> C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a
> V.i.e.n.n.a         A.u.s.t.r.i.a
> _._._._._._._._._._._._._._._._._
-- 
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 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET