Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 201747

Summary: starting iac on Linux reports problem Permissions denied for /tmp dir
Product: z_Archived Reporter: jkubasta
Component: TPTPAssignee: Jonathan West <jgwest>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P1 CC: heatonkm, jptoomey, paulslau, samwai
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description jkubasta CLA 2007-08-30 10:46:48 EDT
Ran Junit test using 4.2.1.1 AC which was started by root on linux. 
Runs successfully. 

Stopped AC (which I had started as root)  and enabled iac
Running Junit test fails with AC is not present or started. 
Found that: 
delete the directory /tmp/IBMRAC
 then try the IAC
I the receive: 
IWAT4039E The Test Execution Harness reported the following problems:
/tmp/heatonkm/NumbersProj/samples/st/gen/ExponentialDoulbleGenerator.class (Permission denied) these are owned by root and I am running as user 
so the defaults for Linux do not allow a non-root user can change the permissions .. this might be part of the same problem.   that is running with AC first then running with iac..  it looks like that directory in /tmp that is lacking the permissions was created by AC (I started AC as root) .. and then when I try to run IAC I cannot write to it until I change the owner to non-root ..
Comment 1 jkubasta CLA 2007-08-30 10:47:17 EDT
Jonathan, please see if this is reproducible with tptp 4.4
Comment 2 Jonathan West CLA 2007-09-10 16:02:32 EDT
I've tested the following use case on Linux using 4.4. Does the use case fit with the scenario that you are describing?

Use Case:

As root:
1. Start AC. Run Eclipse, profile the jUnit test. 
2. Exit Eclipse. Stop AC from the command line.

As non-root:
3. Run Eclipse, profile the jUnit test. (Eclipse should start IAC automatically at this point)
4. Exit eclipse.


Using 4.4.0.2, this use case passes. I am able to start and stop the AC server as root, and I am able to start and stop the IAC server as a non-root user. I am able to profile in both step 1 and step 3. 

The only directores and files created by the AC (as root) are /tmp/IBMRAC/, /tmp/IBMRAC/* (where * are various files), and /tmp/OSSMem*buffer. The /tmp/IBMRAC files, while generated by Root, are RW for all users. All users can read, write, and delete these files at will, ensuring that there will not be any permission problems here.

Also, with 4.4.0.2, as far as I can tell, the /tmp/<username>/ files you described are not generated.
Comment 3 Jonathan West CLA 2007-10-09 12:10:19 EDT
As per above, works for me w/ 4.4.0.2.
Comment 4 Paul Slauenwhite CLA 2007-12-19 07:59:20 EST
Please change the target to the 4.5 iteration when this Bugzilla was resolved.
Comment 5 jkubasta CLA 2009-02-24 16:30:01 EST
closing