You are not logged in.

#1 2010-09-18 17:14:36

king.flasher.dave
Member
From: Berlin
Registered: 2008-11-25
Posts: 140
Website

[SOLVED] Samba is cloning shares

Hey everybody.

I'm using latest Samba (3.5.5-1) and I have a strange problem, which is not really a problem but rather very annoying.

So far (after some troubles setting it up) Samba is working great. I have 2 Arch PCs sharing stuff over the intranet with my flatmates using Windows XP, Vista and 7.
They can login with user nobody and grab stuff from my shares.
Concerning Arch to Arch it's also working great, and the netbios names of the PCs are showing up in Gnome->Places->Network... which is quite cool.

Weird thing is: There's also a netbios name "SAMBA" showing up and its shares are the same as those of one of my Arch computers.
I can browse them (Windows can't, access denied) and also grab stuff, but have nobody permissions on them (of course). Both netbios names are actually holding the same shares and are reachable through smb://my_computer_name/share_name and smb://samba/share_name at the same time.
It's really strange, but after all not too much of a bug as only my Arch PCs can automatically open the SAMBA thing in network.
Anyhow, I'd like to have it resolved, as only the shares of the one Arch PC are cloned into the SAMBA place.

I've double-checked my config file, but I can't seem to find a glitch (I've compared those of the two Arch PCs).
The global settings and the share settings are the same (apart from the path and names of the shares) on both machines.

This is the testparm output:

Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[artists]"
Processing section "[v_artists]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
    workgroup = APES
    netbios aliases = davelab, samba
    server string = Samba Server
    null passwords = Yes
    log file = /var/log/samba/%m.log
    max log size = 50
    dns proxy = No
    guest only = Yes
    guest ok = Yes
    max connections = 3
    case sensitive = Yes

[printers]
    comment = All Printers
    path = /var/spool/samba
    guest ok = No
    printable = Yes
    browseable = No

[artists]
    comment = Artists
    path = /media/truecrypt6/Artists

[v_artists]
    comment = Various Artists
    path = /media/truecrypt6/Various Artists

This is what smbclient currently gets from checking my network:

smbclient -L SAMBA -U%
Domain=[APES] OS=[Unix] Server=[Samba 3.5.5]

    Sharename       Type      Comment
    ---------       ----      -------
    artists         Disk      Artists
    v_artists       Disk      Various Artists
    IPC$            IPC       IPC Service (Samba Server)
Domain=[APES] OS=[Unix] Server=[Samba 3.5.5]

    Server               Comment
    ---------            -------
    DAVE                 Samba Server
    DAVELAB              Samba Server
    SAMBA                Samba Server

    Workgroup            Master
    ---------            -------
    APES                 DAVE

Anyone an idea of some sort? How do I make the SAMBA netbios thing go away?

P.S.: Using Webmin to configure Samba now. It's much easier...


[edit]
Okay, lol.
I've been stupid.

It indeed was the setting for netbios alias.

The first samba server claiming "computer_name samba" as netbios alias will have its shares cloned to the Samba Netbios entry in the local network.

[/edit]

Last edited by king.flasher.dave (2010-09-18 18:22:52)


Speak when you are angry and you will make the best speech you'll ever regret.

Offline

#2 2010-09-18 17:58:06

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Samba is cloning shares

Is it this:

 netbios aliases = davelab, samba

All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

Board footer

Powered by FluxBB