windows can't see samba shares

hi friends.please help me.
I have a windows domain and now I set up a samba for sharing data and printer.But my windows clients can’t see the share folders.means i can’t see even my netbios name in windows(map network drive). This is my samba global section:

    workgroup = dorm  #this is my windows domain name
printing = cups
browseable = yes
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = yes
wins support = yes
netbios name = department
security = user

thanks for any helps.

On Wed May 13 2009 04:06 pm, asghart7 wrote:

>
> hi friends.please help me.
> I have a windows domain and now I set up a samba for sharing data and
> printer.But my windows clients can’t see the share folders.means i can’t
> see even my netbios name in windows(map network drive). This is my samba
> global section:
>
> workgroup = dorm #this is my windows domain name
> printing = cups
> browseable = yes
> printcap name = cups
> printcap cache time = 750
> cups options = raw
> map to guest = Bad User
> include = /etc/samba/dhcp.conf
> logon path = \%L\profiles.msprofile
> logon home = \%L%U.9xprofile
> logon drive = P:
> usershare allow guests = No
> add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody
> -s /bin/false %m$
> domain logons = No
> domain master = yes
> wins support = yes
> netbios name = department
> security = user
>
> thanks for any helps.
>
>
asghart7;

  1. Is it really a domain, if so is it NT or AD? (You need to join the domain
    if it is and for AD you will likely need kerberos) Much of the rest really
    depends on your answer here. But for the record read on.

  2. For testing try with the firewall down. Make sure you have the following
    ports open:
    TCP: 135,139,445
    UDP: 137,138
    You also need to allow broadcasts through your firewall.

  3. Make sure both smbd and nmbd are running. You can check with:


ps -A | grep [n,s]mbd

  1. I would suggest removing the “domain master = yes” and let it resort to the
    default “auto”

  2. If you have set “wins support = yes” then Samba will try to act as a wins
    server. Do you really want this if so have you set the wins server on your
    Windows machines to point to your Samba machine?

  3. You may need to specify the “name resolve order” parameter, but this should
    not stop Windows from seeing your machine.

For some basic configuration help you might wish to look here:
http://www.swerdna.net.au/linux.html


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

excuse me , I don’t know difference between NT and AD.
but three month ago I set up samba for this network without attention to this details and I could use samba shares from windows clients.

On Wed May 13 2009 05:26 pm, asghart7 wrote:

>
> excuse me , I don’t know difference between NT and AD.
> but three month ago I set up samba for this network without attention
> to this details and I could use samba shares from windows clients.
>
>
What is the domain controller (PDC)?

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

PDC primary domain controller .I think this setting is useful when a person want to control windows domain PCs.
I don’t want control windows domain.
I just want share data and my printer for a windows domain.
means please say where I should enter domain name or server name in samba or my system.
thanks

On Thu May 14 2009 04:26 pm, asghart7 wrote:

>
> PDC primary domain controller .I think this setting is useful when a
> person want to control windows domain PCs.
> I don’t want control windows domain.
> I just want share data and my printer for a windows domain.
> means please say where I should enter domain name or server name in
> samba or my system.
> thanks
>
>
asghart7;

Ok, so this isn’t a domain just a workgroup this makes it easier. So follow
the remaining suggestions in my first post. You mention that you had set up
another linux computer on this workgroup, is it still running? It could be a
conflict between the two, so if my first post does not solve your problem,
please post the [global] section of both smb.conf(s). You can only have one
master browser and at most one WINS server ( well you can have two, but there
is no great way to sync them so in practice it does not work). Be sure to
read the HowTo on Swerdna’s site.
Common errors are:

  1. Firewall blocking Samba,
  2. not adding samba users with “smbpasswd -a”,
  3. conflicting master browsers and
  4. name resolution errors with nmbd

    P. V.
    “We’re all in this together, I’m pulling for you.” Red Green