Web lists-archives.com

Re: [Samba] How to change the server info/version which Samba returns to the client?




On Thu, 27 Dec 2018 09:16:30 +0100
"L.P.H. van Belle via samba" <samba@xxxxxxxxxxxxxxx> 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@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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba