forked from weberjn/jFM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjFM.html
101 lines (100 loc) · 3.7 KB
/
jFM.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>jFM - java web application file manager</title>
<link href="styles/style.css" type="text/css" rel="stylesheet">
<link rel="shortcut icon" href="img/folder.gif" type="image/gif" />
<meta http-equiv="content-type" content="text/html;CHARSET=iso-8859-1">
</head>
<body lang="en">
<h1>jFM<br>
</h1>
<p>jFM is a file manager written as a java web application. It can
be downloaded from <a href="https://github.com/weberjn/jFM">https://github.com/weberjn/jFM</a>.<br>
</p>
<p>jGallery is licensed under the <a href="http://www.gnu.org/">Gnu
Public License</a> (GPL).<br>
</p>
<p>Nevertheless, I'd be happy if you <a href="contact.html#postcard">send
me</a> a
picture postcard of your place.<br>
</p>
<h2>Contents</h2>
<ul>
<li><a href="#What_you_need">What you need</a></li>
<li><a href="#Installation">Installation and Configuration</a></li>
<li><a href="#FindingFolders">Finding Folders</a></li>
<li><a href="#Security">Security</a></li>
</ul>
<h3><a name="What_you_need"></a>What you need</h3>
<ul>
<li>a JSP 2.0 compatible web container</li>
</ul>
<h3><a name="Installation">Installation and Configuration<br>
</a></h3>
<p>
</p>
<h4>For Tomcat:<br>
</h4>
<ul>
<li>drop jFM.war into the Tomcat webapps folder.</li>
</ul>
<h3><a name="FindingFolders">Finding Folders<br>
</a></h3>
<p>
</p>
jFM always displays one folder's contents.<br>
<h4>folder address as real path (path addressing)<br>
</h4>
enter a folder address as real path in the file system<br>
<br>
http://<em>yourhost.com</em>/jFM/<span style="color: rgb(255, 0, 0);">p</span><span
style="color: rgb(51, 102, 255);">/<em>a/path</em>/</span><br>
<br>
will access<br>
<br>
<span style="color: rgb(255, 0, 0);"></span><span
style="color: rgb(51, 102, 255);">/<em>a/path</em>/</span><br>
<br>
If context-param filebase in web.xml is set, it will always be
prepended to entered paths. So you can restrict path addressing to a subdirectory of the filesystem.<br>
<br>
e.g. if filebase is <span style="color: rgb(0, 102, 0);">c:/</span><br>
<br>
http://localhost:8080/jFM/<span style="color: rgb(255, 0, 0);">p</span><span
style="color: rgb(51, 102, 255);">/jakarta-tomcat-5.0.19/webapps/tomcat-docs/<br>
<br>
</span>will access a file system folder <span
style="color: rgb(0, 102, 0);">c:</span><span
style="color: rgb(51, 102, 255);">/jakarta-tomcat-5.0.19/</span><span
style="color: rgb(51, 102, 255);">webapps/tomcat-docs/</span><span
style="color: rgb(51, 102, 255);"> </span><br>
<br>
<h3><a name="Security">Security</a></h3>
<br>
jFM can be secured with the standard web application security.<br>
<br>
For this, remove the comment around the <em><security-constraint></em>
entry in web.xml and only users in role <em>manager </em>will have access.<br>
<br>
If your webmaster insists on running Tomcat with a security manager,
he should add the following entry to
$CATALINA_BASE/conf/catalina.policy<br>
<br>
grant codeBase "file:${catalina.home}/webapps/jFM/WEB-INF/-" {<br>
permission java.io.FilePermission "<span
style="color: rgb(255, 0, 0);">d:${/}-</span>", "read,write,delete";<br>
permission java.net.SocketPermission "*:80",
"connect";<br>
};<br>
<br>
FilePermission allows access to the filesystem part below the given path <span
style="color: rgb(255, 0, 0);">p</span>.<br>
<br>
The SocketPermission is needed for the <em>Get file from URL</em>
feature of jFM.
<p class="lastmod">Last modification 2016-05-12</p>
<p class="copyright">Copyright © 2004,2016 <a href="contact.html">Jürgen
Weber</a></p>
</body>
</html>