Go Back   The macosxhints Forums > OS X Help Requests > Applications



Reply
 
Thread Tools Rate Thread Display Modes
Old 08-05-2005, 05:16 PM   #1
ljfong
Prospect
 
Join Date: Apr 2005
Posts: 15
Question /Library/Java/Home/lib/jvm.cfg Strangeness

For some reason this file always has the wrong permission set even after the permission is repaired. The correct permission should be 644, but it is reset back to 600 if a non-root user ever runs 'java'. If the permission is 600, running 'java' produces error of no JVM can be determined and the error points to possibly corruption of jvm.cfg file. I'm on Tiger 10.4.2. Something in the system is insisting 600 permission on the file. Any idea?

Here's what happens:

Code:
[Fri Aug 05 02:56 PM][ttyp6][0][~/temp]
ljfong@lucky$ ls -l /Library/Java/Home/lib/jvm.cfg
-rw-r--r--   1 root  wheel  668 Aug  5 14:56 /Library/Java/Home/lib/jvm.cfg
[Fri Aug 05 02:58 PM][ttyp6][0][~/temp]
ljfong@lucky$ java -version

java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-215)
Java HotSpot(TM) Client VM (build 1.4.2-50, mixed mode)
[Fri Aug 05 02:58 PM][ttyp6][0][~/temp]
ljfong@lucky$ 
[Fri Aug 05 02:58 PM][ttyp6][0][~/temp]
ljfong@lucky$ ls -l /Library/Java/Home/lib/jvm.cfg
-rw-------   1 root  wheel  668 Aug  5 14:58 /Library/Java/Home/lib/jvm.cfg
ljfong is offline   Reply With Quote
Old 08-07-2005, 11:29 AM   #2
TheDuke81
Prospect
 
Join Date: Aug 2005
Posts: 9
wow, that is weird! I'll go fool around and see if I can figure something out for you
TheDuke81 is offline   Reply With Quote
Old 08-07-2005, 05:37 PM   #3
ljfong
Prospect
 
Join Date: Apr 2005
Posts: 15
For a temporary fix, I just did chflags schg on the file as root once I fixed it to 644. The command made it impossible to root/system to change the mode of 644 to anything else, but it is really a bandage solution rather than a permanent one, since I still have not the slightest clue why the system automatically does that.
ljfong is offline   Reply With Quote
Old 09-05-2005, 11:47 AM   #4
rhashimoto
Prospect
 
Join Date: Sep 2005
Posts: 2
I had the same problem, and I believe I just found out why. Do you by any chance set umask? I had my umask set 077, and when I changed it to 022 the permissions on jvm.cfg remained correct. It looks like the permissions on this file are being anded with the user's umask even though the owner of the file is root.
rhashimoto is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.