[Samba] How to change the server info/version which Samba returns to the client?
Rowland Penny
rpenny at samba.org
Thu Dec 27 08:44:09 UTC 2018
On Thu, 27 Dec 2018 09:16:30 +0100
"L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:
>
> > > Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.14-Debian]
>
> Server=[Samba 4.2.14-Debian]
>
> You can change the version-Debian yes.
> But you need to rebuild you samba for it.
>
> Run : apt-get source samba
> cd samba-....
>
> Edit VERSION
> You see somethine like this.
>
> ########################################################
> SAMBA_VERSION_VENDOR_SUFFIX=Debian
> SAMBA_VERSION_VENDOR_PATCH=
>
Now that is a good bit of lateral thinking ;-)
If you use the default Samba 'VERSION' file and set 'server string
=' (to no value), you will get something like this:
root at dc3:~# smbclient -L localhost
Enter SAMDOM\root's password:
Anonymous login successful
Domain=[SAMDOM] OS=[] Server=[]
Sharename Type Comment
--------- ---- -------
sysvol Disk
netlogon Disk
IPC$ IPC IPC Service ()
Anonymous login successful
Domain=[SAMDOM] OS=[] Server=[]
Server Comment
--------- -------
Workgroup Master
--------- -------
Rowland
More information about the samba
mailing list