From 80120a79bc5381d86241b4173f085a00f5bb7e01 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 13 Jan 2003 12:54:59 +0000 Subject: Patch from ab, to make findsmb omit -r most of the time. (original mail follows) -- From: Alexander Bokovoy Greetings! I propose to make an optional argument '-r' for findsmb utility to pass '-r' option to nmblookup optionally and default to omit it. The reason is to have findsmb working more user-friendly in contemporary office environments where Windows 95/98 boxes are rare and also to allow usage of the utility under non-priviledged accounts when Windows95/98 boxes are in minority or even absent in network neighbourhood. An attached patch provides this change for HEAD together with documentation changes. -- / Alexander Bokovoy (This used to be commit d0bebea521e12fb9cef66feecd969216607ef63d) --- docs/docbook/manpages/findsmb.1.sgml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'docs/docbook/manpages/findsmb.1.sgml') diff --git a/docs/docbook/manpages/findsmb.1.sgml b/docs/docbook/manpages/findsmb.1.sgml index fb953b9f25..a246b162b1 100644 --- a/docs/docbook/manpages/findsmb.1.sgml +++ b/docs/docbook/manpages/findsmb.1.sgml @@ -39,6 +39,15 @@ OPTIONS + + -r + Controls whether findsmb takes + bugs in Windows95 into account when trying to find a Netbios name + registered of the remote machine. This option is disabled by default + because it is specific to Windows 95 and Windows 95 machines only. + If set, nmblookup + will be called with -B option. + subnet broadcast address Without this option, findsmb @@ -66,15 +75,17 @@ not show any information about the operating system or server version. - The command must be run on a system without The command with -r option + must be run on a system without nmbd running. If nmbd is running on the system, you will only get the IP address and the DNS name of the machine. To get proper responses from Windows 95 and Windows 98 machines, - the command must be run as root. + the command must be run as root and with -r + option on a machine without nmbd running. - For example, running findsmb on a machine - without nmbd running would yield output similar + For example, running findsmb without + -r option set would yield output similar to the following -- cgit