Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Change the system description used by Samba Network
Jaguar has much improved Windows file sharing support, but one thing that bothered me was that it auto-filled the description to that of "Samba 2.2.3a? when browsing to the Mac from within My Network Places on my Windows box. I wished I could change this to something more descriptive. Well you can!

Open up the terminal and type
sudo pico /etc/smb.conf
Scroll down to the [global] section and add the line
server string = A nice description goes here
then hit control-X then "Y" (to save the file and exit Pico).

Next restart the system and BAM! "Samba 2.2.3a? should be replaced by whatever you put for the server string. You can also change the hostname of the box (and the name that shows up in parentheses in the Windows box) by changing your Rendezvous name in the sharing portion of the control panel.

[Editor's note: I haven't tried this, but you might not need to restart. Try simply disabling and re-enabling the "Windows sharing" in the Sharing prefs panel first. It might do the trick.]
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)

Change the system description used by Samba | 3 comments | Create New Account
Click here to return to the 'Change the system description used by Samba' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: timb on Sep 06, '02 10:24:43AM

You can also kill smbd and nmbd and restart them (/usr/sbin/smbd and nmbd) or you can do what the Editor said (Stopping and Starting Windows Sharing) I just found that it clears Sambas cache better to restart, so, if you have problems, try a restart first.

[ Reply to This | # ]
Authored by: BraindeadMac on Sep 06, '02 12:18:44PM
Actually the correct way to get smbd to restart is to use SIGHUP, i.e.,
do sudo kill -HUP theprocessidofsmbd. The man for smbd
tell you that doing a kill (-9) can leave memory in an inconsistent state.

[ Reply to This | # ]
Authored by: Ed Lally on Sep 21, '02 11:01:17AM

You don't always need to restart Samba, as long as you can wait a few minutes. Samba will automatically re-read its configuration file every few minutes and will pick up the changes. Since Samba is frequently used to serve files on Unix servers to Windows clients, you wouldn't want to have to kill everyone's session (i.e. restart Samba) just to add a new network share.

But, if you need your changes to take effect immediately, you can also send a SIGHUP to the parent smbd process to force it to re-read the configuration file.

[ Reply to This | # ]