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

Display computer name only in Samba shares Network
I have never had a problem with Samba and networking. The only thing that irritated me was when in Windows, my laptop would be seen as "Samba 2.2.3a (build 26) iBook (IBOOK)." This is long and silly. I wanted for it to just say the name of the computer. After reading a few other hints on Samba, I got started. I figured the clue would be in the /etc/smb.conf file (which it is). The first step is to back up the conf file. In terminal type:
  % sudo cp /etc/smb.conf /etc/smb.conf.bak
Second Step. Edit it. Open it up and you'll find there are a few categories each in [brackets]. The first one is called "global." This contains all the settings for Samba in general. The default is this:
  [global]
  client code page = 437
  coding system = utf8
  guest account = unknown
  encrypt passwords = yes
Note that there maybe an extra line if you have changed the name of the workgroup. After encrypt passwords = yes, simply add another line which says server string = %h - this will mean (after saving and restarting Samba) that Windows will just see your Samba server by the name of the computer. Alternativley, replace the %h with any text you like and that will be the name of the server.

By the way, Windows XP lists the computers by the name, and then the address in brackets afterwards. So now my iBook in windows looks like iBook (Ibook). Still, it doesn't confuse the people on my network that doesn't know who Samba is anymore!
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,718 views]  

Display computer name only in Samba shares | 2 comments | Create New Account
Click here to return to the 'Display computer name only in Samba shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display computer name only in Samba shares
Authored by: Kool on May 01, '03 11:26:54AM

I had this problem too, but after the 10.2.5 update is was
solved.



[ Reply to This | # ]
Display computer name only in Samba shares
Authored by: mhorn on May 01, '03 07:31:36PM
To put a little plug in for my program. You can use SharePoints to configure this setting and many others for the Samba server. It will also make setting up Samba shares of any directory easy.

[ Reply to This | # ]