Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reconciling SMB-Linux share names with Windows

Status
Not open for further replies.

mdutch

IS-IT--Management
Apr 21, 2006
4
US
How do I "fix" the long drive names displayed in local workstations (WinXP) "My Computer", so they agree with the data in my smb.conf file and Linux "smbclient -L" displays?

Problem:
I'm running XP workstations under a SMB 3.4.0 domain server called JAM. Shares seem to be operating smoothly, but the "drive naming" under WinXP clients is different. Look at the samba shares from the server...
Code:
[b]root@jam:~/samba# smbclient -L smb[/b]
Domain=[JAM] OS=[Unix] Server=[Samba 3.4.0]
 Sharename       Type      Comment
 ---------       ----      -------
 netlogon        Disk      Network Logon Service
 app             Disk      app samba share
Yet the info displayed in WinXP My Computer is different:
Code:
[b]NAME                                                   COMMENT[/b]
 app on 'jam server (Samba, Ubuntu) (smb)' (I:)
 netlogon on 'jam server (Samba, Ubuntu) (smb)' (N:)
It looks to me like the names are getting generated by the old default "server string" variable from orig.smb.conf:
Code:
server string = %h server (Samba, Ubuntu)
But in /etc/samba/smb.conf I have reset that string to
Code:
server string = "hello"
...which displays correctly under smbclient -L
Code:
  Server               Comment
  ---------            -------
  SMB                  hello

Why am I getting share-names under XP derived from a "server string" syntax that's not even in my smb.conf file? I've grep'd "(Samba, Ubuntu)" and it doesn't appear in /etc/smb.conf or any samba configuration file I can find (other than un-used original versions).

I'm stumped!
 
Okay, today I see my drive names are changed. After some experimenting, in the windows Registry, I found this key:
Code:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions
containing a list of machine names. When I reset the name of my SAMBA server to null, the new string "hello" that I configured in smb.conf propagated to the drive names in My Computer.

So is this a winbind problem?
Is there some way to "force" the names to propagate faster?
Do I need to restart winbind along with /etc/initi.d/samba?
If so, before or after?
 
I think it's a Windows issue. It might refresh if you delete the drive mapping and add it again with the net use command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top