A ? about Samba

A ? about Samba

Post by root » Sun, 31 Dec 1899 09:00:00



RH 6.0 and Samba 2.0.5a, get rid of the 2.0.3 version included in RH.

In the /usr/local/samba/lib/smb.conf, I changed the "comment"  value
from "Samba Server" to "Samba Server 2.0.5a". Then restart the Samba

Issue "smbclient -L <machine name> -N", the display like following:

one line of the first part is:

"Sharename    Type     Comment"
IPC$                  IPC        IPC Service(Samba Server 2.0.5a)

one line of the 2nd part is:

Server                          Comment
<machine name>    Samba Server 2.0.3

Here's my question: since I already update the 'comment' value in
'smb.conf' file, the first 'comment' value in the display is correct and
understandable, but what about the 2nd 'comment' value in the display?
Where does the 'Samba Server 2.0.3" come from?  it even doesn't match
the old 'comment' value which is 'Samba Server'! I know it should relate
to the upgrade of Samba package.  But I don't know why.

Could anyone explain this to me?  Thanks a lot!!!

Please also email me!

Jack

 
 
 

A ? about Samba

Post by Matthew Knigh » Sun, 31 Dec 1899 09:00:00


Jack

Try "server string = Samba Server %v" or something like. "Server String" is
the global equivalent of "comment", as far as I can tell, and %v is a
variable that returns the current version. See man pages for more (lots
more!).

Matthew Knight


Quote:> RH 6.0 and Samba 2.0.5a, get rid of the 2.0.3 version included in RH.

> In the /usr/local/samba/lib/smb.conf, I changed the "comment"  value
> from "Samba Server" to "Samba Server 2.0.5a". Then restart the Samba

> Issue "smbclient -L <machine name> -N", the display like following:

> one line of the first part is:

> "Sharename    Type     Comment"
> IPC$                  IPC        IPC Service(Samba Server 2.0.5a)

> one line of the 2nd part is:

> Server                          Comment
> <machine name>    Samba Server 2.0.3

> Here's my question: since I already update the 'comment' value in
> 'smb.conf' file, the first 'comment' value in the display is correct and
> understandable, but what about the 2nd 'comment' value in the display?
> Where does the 'Samba Server 2.0.3" come from?  it even doesn't match
> the old 'comment' value which is 'Samba Server'! I know it should relate
> to the upgrade of Samba package.  But I don't know why.

> Could anyone explain this to me?  Thanks a lot!!!

> Please also email me!

> Jack