mirror of
https://github.com/unraid/webgui.git
synced 2026-01-17 23:20:02 -06:00
92 lines
3.7 KiB
Plaintext
92 lines
3.7 KiB
Plaintext
Menu="SMB:1"
|
|
Title="SMB Settings"
|
|
Tag="windows"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2020, Lime Technology
|
|
* Copyright 2012-2020, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<form markdown="1" name="SMBEnable" method="POST" action="/update.htm" target="progressFrame">
|
|
|
|
Enable SMB:
|
|
: <select name="shareSMBEnabled" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['shareSMBEnabled'], "no", "No")?>
|
|
<?=mk_option($var['shareSMBEnabled'], "yes", "Yes (Workgroup)")?>
|
|
<?=mk_option($var['shareSMBEnabled'], "ads", "Yes (Active Directory)")?>
|
|
</select>
|
|
|
|
> Select 'Yes (Workgroup)' to enable SMB (Windows Networking) protocol support. This
|
|
> also enables Windows host discovery.
|
|
>
|
|
> Select 'Yes (Active Directory)' to enable Active Directory integration.
|
|
|
|
Hide "dot" files:
|
|
: <select name="hideDotFiles" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['hideDotFiles'], "no", "No");?>
|
|
<?=mk_option($var['hideDotFiles'], "yes", "Yes");?>
|
|
</select>
|
|
|
|
> If set to 'Yes' then files starting with a '.' (dot) will appear as *hidden files* and normally
|
|
> will not appear in Windows folder lists unless you have "Show hidden files, folders, and drives" enabled
|
|
> in Windows Folder Options.
|
|
|
|
> If set to 'No' then dot files will appear in folder lists the same as any other file.
|
|
|
|
Enhanced macOS interoperability:
|
|
: <select name="enableFruit" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['enableFruit'], "no", "No");?>
|
|
<?=mk_option($var['enableFruit'], "yes", "Yes");?>
|
|
</select>
|
|
|
|
> When set to 'Yes' provides enhanced compatibility with Apple SMB clients, resulting, for example, in faster
|
|
> Finder browsing, and ability to export Time Machine shares. This may cause some issues with Windows clients, however.
|
|
> Please also refer to the [VFS_FRUIT MAN PAGE](https://www.mankier.com/8/vfs_fruit).
|
|
|
|
Enable NetBIOS:
|
|
: <select name="USE_NETBIOS" size="1" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['USE_NETBIOS'], "no", "No")?>
|
|
<?=mk_option($var['USE_NETBIOS'], "yes", "Yes")?>
|
|
</select>
|
|
|
|
> Select 'Yes' to enable NetBIOS. If enabled, SMBv1 protocol will also be recognized. If disabled,
|
|
> clients must use SMBv2 or higher.
|
|
|
|
Enable WSD:
|
|
: <select name="USE_WSD" size="1" onchange="checkWSDSettings()" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
<?=mk_option($var['USE_WSD'], "no", "No")?>
|
|
<?=mk_option($var['USE_WSD'], "yes", "Yes")?>
|
|
</select>
|
|
|
|
> Select 'Yes' to enable WSD (WS-Discovery). The only reason to turn this off is when you are running an
|
|
> old LAN setup based on SMBv1.
|
|
|
|
WSD options [experimental]:
|
|
: <input type="text" name="WSD_OPT" maxlength="80" class="narrow" value="<?=htmlspecialchars($var['WSD_OPT'])?>" <?if ($var['fsState']=="Started"):?>disabled<?endif;?>>
|
|
|
|
> This is a command line otions string passed to the WSD daemon upon startup. Leave this field blank unless
|
|
> instructed by support to put something here.
|
|
|
|
|
|
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($var['fsState']=="Started"):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
|
</form>
|
|
|
|
<script>
|
|
function checkWSDSettings() {
|
|
form=document.SMBEnable;
|
|
if (form.USE_WSD.value=="yes") {
|
|
form.WSD_OPT.disabled=false;
|
|
} else {
|
|
form.WSD_OPT.disabled=true;
|
|
}
|
|
}
|
|
$(checkWSDSettings);
|
|
</script>
|