AWC Lists
2005-Jun-22 21:25 UTC
[Samba] How to I change server=[Samba 3.04.14a-2] to something else?
So I have setup my samba box as a PDC and everything is working fine. There is one thing that keeps bugging me: When I run locallly: smbclient -L localhost -U% I get the following: ----------------------------- Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 3.0.14a-2] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (ROI Fileserver) netlogon Disk Network Logon Service profiles Disk Profile Share office Disk Primary data share management Disk Data share for management only awc Disk AWC drivers storage apps Disk Application Files ADMIN$ IPC IPC Service (ROI Fileserver) Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 3.0.14a-2] Server Comment --------- ------- MYSERVER My Fileserver ------------------------------- So I have set the "Server string" to "My Fileserver", which shows up correctly in the comment. I want to change the Server=[Samba 3.0.14a-2] being announced to something else. I would like Server=[DataServer] as I do not want the server annoucing to the world it is running samba. How would I do this? I want to do this as when you browse shares in Windows XP its plunks "Samba 3.0.14a-2" into the task bar. Thanks in advance. --- Charles
Gerald (Jerry) Carter
2005-Jun-22 21:41 UTC
[Samba] How to I change server=[Samba 3.04.14a-2] to something else?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 AWC Lists wrote:> I want to change the Server=[Samba 3.0.14a-2] being > announced to something else. I would like Server=[DataServer] > as I do not want the server annoucing to the world it is > running samba. How would I do this?You will have to change the smbsessetup reply code in the server. Look in smbd/sesssetup.c:add_signature(). But it really takes more than this to hide the fact that the server is running Samba. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCudrWIR7qMdg1EfYRApcuAJ9/watmsLu2QFtrFV5hetL/q2QpPwCgztT1 VrF0CRAWlPpa+IOANbt7aZQ=U6fA -----END PGP SIGNATURE-----
AWC Lists
2005-Jun-22 22:59 UTC
[Samba] How to I change server=[Samba 3.04.14a-2] to something else?
So I have setup my samba box as a PDC and everything is working fine. There is one thing that keeps bugging me: When I run locallly: smbclient -L localhost -U% I get the following: ----------------------------- Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 3.0.14a-2] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (ROI Fileserver) netlogon Disk Network Logon Service profiles Disk Profile Share office Disk Primary data share management Disk Data share for management only awc Disk AWC drivers storage apps Disk Application Files ADMIN$ IPC IPC Service (ROI Fileserver) Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 3.0.14a-2] Server Comment --------- ------- MYSERVER My Fileserver ------------------------------- So I have set the "Server string" to "My Fileserver", which shows up correctly in the comment. I want to change the Server=[Samba 3.0.14a-2] being announced to something else. I would like Server=[DataServer] as I do not want the server annoucing to the world it is running samba. How would I do this? I want to do this as when you browse shares in Windows XP its plunks "Samba 3.0.14a-2" into the task bar. Thanks in advance. --- Charles
Alex Satrapa
2005-Jun-23 05:24 UTC
[Samba] How to I change server=[Samba 3.04.14a-2] to something else?
On 23 Jun 2005, at 13:13, Geoff Scott wrote:> # smbd -V > > I see this: > Version 3.0.14a-Debian > > but my window titles are showing the old 3.0.7 version. Humph > Weird........Did you restart the Windows machine in the meantime? I've had continuing problems with Windows (post Windows 98) machines that like to keep connections open - I don't know why. Stop the samba service and check smbstatus - you'll find one or two connections still open. Turn off your PC and you should see the connection has disappeared (smbstatus will be at least one process smaller). Then start the Samba service and see what happens. From the screenshot, it appears that you're composing the email at the same time that you're changing the server config - which means that your operating system certainly hasn't released that connection. One of the Samba team can correct me if I'm wrong, but I'm under the impression that once a connection is opened, the smbd process serving that connection will continue to use the parameters that it read when it started. Other smbd processes will read the config file as they're started, meaning everyone else will see different "server" and "comment" strings if your operating system doesn't close the connection. You might also find that the startup scripts are dealing with a different set of binaries, or at least using /etc/smb.conf vs /etc/ samba/smb.conf. It's worth checking out, especially if you're doing a cross-distribution upgrade. As an aside, this is one reason I prefer to reinstall rather than upgrade when it comes to changing distributions. HTH Alex