h62388 s 00001/00001/00040 d D 1.3 96/06/27 09:28:31 mrm 4 3 c putback the fix this time e s 00000/00000/00041 d D 1.2 96/06/25 12:08:48 mrm 3 1 c fixed broken link e s 00000/00000/00000 d R 1.2 95/12/11 22:02:17 Codemgr 2 1 c SunPro Code Manager data about conflicts, renames, etc... c Name history : 2 1 sfaq/example/writeFile.html c Name history : 1 0 people/mrm/sfaq/example/writeFile.html e s 00041/00000/00000 d D 1.1 95/12/11 22:02:16 mrm 1 0 c date and time created 95/12/11 22:02:16 by mrm e u U f e 0 t T I 1 Java Security FAQ: Writing Files

Java Security FAQ: Writing Files


Here's an applet that tries to write to the file /tmp/foo:

and here's the source.

If you add the line

	acl.write=/tmp
to your ~/.hotjava/properties file, then the appletviewer will be able to write to that directory. That is, the appletviewer will be able to create files in your /tmp directory.

If you add a file name specifically,

	acl.write=/tmp/foo
then the appletviewer will be allowed to create just that one file, but not other files in the /tmp directory.

Conclusion: Don't add files or directories to acl.write in ~/.hotjava/properties, if you don't want the appletviewer to allow applets to create files on your system.

D 4 Back to the Java Security FAQ E 4 I 4 Back to the Java Security FAQ E 4 E 1