If nobody comes up with a better idea, try this:
Code:
script
strace su - jboss
When it settles down, type
If you don't see "Script done" right away, type
again and again until you do.
You will find in your current directory a file called
typescript. Post that on this thread and let's take a look-see.
Personally, I don't think the problem is the 777 permissions. I think that someone went in and tried to fix it, and fixed it too far.