On 24 Feb 2005 at 10:24, the.noonings wrote: > Alan, your description of my installation process fits 100%. > Setting PAR_GLOBAL_CLEAN=1 would clean out the /tmp/par-nooning > directory, but leave it with the original root owner and group. Right? >
The cache from a particular execution will be deleted from inside par-nooning, and if that results in par-nooning being empty, par-nooning will itself be deleted. It will be created again when you run pp and deleted again if PAR_GLOBAL_CLEAN=1, and created again when the PAR app runs, with the real owner at that time (presumably no longer root). If you just delete the root owned par-nooning and then, whenever you re-install PAR, set PAR_GLOBAL_CLEAN=1 while installing, you should be OK. The root should not have a problem using a "leftover" user owned par-nooning. Just don't leave any newly created install temp dirs around. It's a lot safer/universal than the PAR install trying to anticipate generic ownership changes. > Besides the solution of being (real id) root when installing PAR/pp, how > about having par automatically reassign real ID instead of effective ID > to the owner and group before exiting the process. Here is something > that worked > on Linux Mandrake. The Solaris code below is from some very old notes. > The rest I just tested. > It's also cleaner (sic) to run a pp wrapper script that sets PAR_GLOBAL_CLEAN=1, invokes pp, and then sets it back. You don't need any of the leftovers from pp, either. Alan Stewart
