This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[SUGGESTION] Take apart SMB share

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

[SUGGESTION] Take apart SMB share

Post by kkd »

Many time I need to find the ative users (for example not to reboot while thay r using files).
So I suggest to split active dirlist to 2 parts.

diags_info_samba.php

Code: Select all

				<tr>
					<td>
						<pre><?php 
						 exec("/usr/bin/env LC_ALL=en_US.UTF-8 /usr/bin/smbstatus -L | grep -v 'Locked files' | grep -v 'DENY_NONE' | grep -v 'DENY_ALL' ", $rawdata);
						 echo htmlspecialchars(implode("\n", $rawdata));
						 unset($rawdata);
						?></pre>

					</td>
				</tr>
				</tr>
				<?php html_titleline(gettext("Active Directory List"));?>
				<tr>
					<td>
						<pre><?php 
						 exec("/usr/bin/env LC_ALL=en_US.UTF-8 /usr/bin/smbstatus -L | grep -v 'Locked files' | grep -v 'DENY_WRITE' ", $rawdata);
						 echo htmlspecialchars(implode("\n", $rawdata));
						 unset($rawdata);
						?></pre>

					</td>
				</tr>
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

Post Reply

Return to “Suggestions & Requests”