Hi Amal,
for the env issue, make sure you have set the following as root
JAVA_HOME=<jdk directory>
PATH=$JAVA_HOME/bin:$PATH
LD_LIBRARY_PATH=/sapmnt/<SID>/exe
DISPLAY
source : http://scn.sap.com/thread/520317
Dont know if you had a look at this tread
FSL-04017 Unable to change group. ID: 505. Operation not permitted
sourcs : http://scn.sap.com/thread/455982
Best Regards
Marius