-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSecuritySMB.page
83 lines (56 loc) · 2.51 KB
/
SecuritySMB.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
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
Icon="icons/windows-icon.png"
Cond="(($var['shareSMBEnabled']!='no') && array_key_exists($name,$sec))"
Menu="Disk Cache Flash Share"
Title="SMB Security Settings"
---
<form markdown="1" method="POST" action="/update.htm" target="progressFrame">
Export:
: <select name="shareExport" size="1">
<?=mk_option($sec[$name]['export'], "-", "No");?>
<?=mk_option($sec[$name]['export'], "e", "Yes");?>
<?=mk_option($sec[$name]['export'], "eh", "Yes (hidden)");?>
</select>
> This setting determines whether the share is visible and/or accessible. The 'Yes (hidden)' setting
> will *hide* the share from *browsing* but is still accessible if you know the share name.
Security:
: <select name="shareSecurity" size="1">
<?=mk_option($sec[$name]['security'], "public", "Public");?>
<?=mk_option($sec[$name]['security'], "secure", "Secure");?>
<? if ($var['featureSecurityUser']): ?>
<?=mk_option($sec[$name]['security'], "private", "Private");?>
<? else: ?>
<?=mk_option($sec[$name]['security'], "private", "Private", "disabled");?>
<? endif; ?>
</select>
> Summary of security modes:
> **Public** All users including guests have full read/write access.
> **Secure** All users including guests have read access, you select which of your users
> have write access.
> **Private** No guest access at all, you select which of your users have read/write or
> read-only access. Note: only available with *Pro* registration.
: <input type="hidden" name="shareName" value="<?=$name;?>">
<input type="submit" name="changeShareSecurity" value="Apply">
<button type="button" onClick="done();">Done</button>
</form>
<? if ($sec[$name]['security'] == 'secure'): ?>
<form markdown="1" method="POST" action="/update.htm" target="progressFrame">
User Access:
: Guests have **read-only** access.
<? input_secure_users($sec); ?>
: <input type="hidden" name="shareName" value="<?=$name;?>">
<input type='submit' name='changeShareAccess' value='Apply'>
<button type='button' onClick='done();'>Done</button>
</form>
<? elseif ($sec[$name]['security'] == 'private'): ?>
<form markdown="1" method="POST" action="/update.htm" target="progressFrame">
User Access:
: Guests have **no** access.
<? input_private_users($sec); ?>
: <input type="hidden" name="shareName" value="<?=$name;?>">
<input type='submit' name='changeShareAccess' value='Apply'>
<button type='button' onClick='done();'>Done</button>
</form>
<? endif ?>