-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFTP.page
40 lines (33 loc) · 1.27 KB
/
FTP.page
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
Icon="icons/ftp-icon.png"
Menu="NetworkServices"
Title="FTP"
---
<?
$ftp_userlist_file = "/boot/config/vsftpd.user_list";
$ftp_userlist = "";
if (file_exists($ftp_userlist_file)) {
$ftp_userlist = str_replace("\n", " ", trim(file_get_contents($ftp_userlist_file)));
if ($ftp_userlist === false) {
$ftp_userlist = "";
}
}
?>
<form markdown="1" method="POST" action="/update.htm" target="progressFrame">
<input type="hidden" name="cmd" value="echo">
<input type="hidden" name="arg2" value="| tr ' ' '\n' > <?=$ftp_userlist_file;?>">
FTP user(s):
: <input type="text" name="arg1" size="40" maxlength="80" value="<?=$ftp_userlist;?>">
>Enter the user names (separated by spaces) permitted to acces the server using [FTP](/Help).
>To disable FTP, clear this setting.
>
>**Note:** do not enter user name `root` since this may cause problems
>in the future.
: <input type="submit" value="Apply">
<button type="button" onClick="done();">Done</button>
</form>
> ### Overview
>
> unRAID includes the popular `vsftpd` FTP server. The configuration of `vsftp` is currently very
> simple: **All** user names entered above are permitted to access the server via FTP and will have
> *full read/write/delete access* to the entire server, so use with caution.