LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-08-2009, 04:25 AM   #1
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Rep: Reputation: 16
Lenny samba - Windows PC's can't see Debian.


I went ahead and installed Debian lenny, got my Nvidia drivers installed.

I copied my smb.conf file from my Etch install to my Lenny install and none of my Windows PC's can see Lenny.

Shouldn't this work? What should I do to troubleshoot this problem?

Here is my smb.conf file:
Code:
#======================= Global Settings =======================

[global]

   workgroup = WORKGROUP
   server string = %h server
   dns proxy = no
;   name resolve order = lmhosts host wins bcast
#   hosts allow 172.23.23.0/255.255.255.0   # why is this needed? more research.

#### Networking ####                        # research this!
;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = true

#### Debugging/Accounting ####
   log file = /var/log/samba/log.%m
   max log size = 1000
;   syslog only = no
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

####### Authentication #######

    #security = share                       # look this up!
   security = user
   encrypt passwords = true


    client ntlmv auth = yes


# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam
   obey pam restrictions = yes


;   guest account = nobody
;   invalid users = root
;   unix password sync = no
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
;   pam password change = no



########## Printing ##########
   load printers = yes
   printing = cups
   printcap name = cups
;   printer admin = @ntadmin

############ Misc ############
   socket options = TCP_NODELAY

############ Share Definitions ############ 

[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   directory mask = 0700
   valid users = %S

[printers]
   comment = All Printers
   browseable = yes
   path = /var/spool/samba
   printable = yes
   public = no
   writable = no
   create mode = 0700

[print$]
# Windows clients look for this share name as a source of downloadable printer drivers.
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[WEB]
    path = /var/www
    browseable = yes
    writeable = yes
    admin users = jon
 
Old 02-08-2009, 06:16 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,299

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Are the services running? Try a '/etc/rc.d/init.d/smb restart' That should stop ( if they are running ) and start them up.

Also, make sure you can ping from the clients to the server. Did you set up a /etc/hosts file?
 
Old 02-08-2009, 12:28 PM   #3
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Original Poster
Rep: Reputation: 16
Thanks for the input but still a no go.

I actually used: /etc/init.d/samba restart

But even if that were wrong I have also rebooted!

All machines can ping all other others and the gateway.

You asked if i set up a /etc/hosts file. Do you mean /etc/hosts.allow?
The only difference is in Lenny I have NOT disabled ip v6. Well, and my hostnames are different!

I checked my host.allow file in Etch and it doesn't have any entries in it. I could have sworn that I had to add all my lan ip's to this file!
I have tried listing all the ip's of all systems on my lan in /etc/hosts.allow and leaving it blank with no effect. I cannot even see the Debian-Lenny through Win2k, XP, or Vista. Although when I reboot into Debian-Etch I can read and write to my Debian shares!

I would assume that since I cannot even see my Debian machine on the lan than it is a samba configuration error on my part but I have no idea how to fix it.

Thanks for the help!
 
Old 02-08-2009, 01:03 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,299

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Quote:
You asked if i set up a /etc/hosts file.
No, have a look at the hosts file. It is a listing of host IP addresses, and names. Here is a sample entry from mine.

Quote:
cat /etc/hosts
192.168.1.22 presto
192.168.1.30 peigi-pc
192.168.1.23 snail
192.168.1.21 sluggy
192.168.1.15 presto_2
Samba uses names, so I'm not sure how samba finds the IP address of a host if you don't define it.

The file exists on windoze, all versions too. It has to do with looking up the hosts on your local lan, or any where for that matter. I use static IP addresses. For that laptops that come and go I allow DHCP, but in the router I find out the MAC address, and then set up a table so one MAC always gets the same IP address. This way there are no moving targets...

Host.allow is another thing. No problem adding what you have done. What have you got in hosts.deny ?
 
Old 02-08-2009, 01:37 PM   #5
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Original Poster
Rep: Reputation: 16
My hosts.deny is empty.

I have added all pc's to to the hosts file and restarted samba, but still cannot browse the Lenny pc.

I also use my router to assign ip addresses by MAC address.

What else is left to try?

Thank you for your help.
 
Old 02-08-2009, 06:15 PM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,299

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
The only other thing I can think of, is to add this line to the global section, and restart samba.

Quote:
wins support = Yes
This usually helps making things seen in the network faster.

Quote:
I have added all pc's to to the hosts file and restarted samba, but still cannot browse the Lenny pc.
Do you have a hosts file on each windoze system updated with the IP address of the samba server?

Last edited by camorri; 02-08-2009 at 06:19 PM.
 
Old 02-08-2009, 08:40 PM   #7
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133

Original Poster
Rep: Reputation: 16
Added wins support option to global smb.conf.
Windows hosts files updated to include ip address of samba server still nothing.

I finally found part of the problem: /var/log/samba/log.nmbd
Quote:
nmbd/nmbd_nameregister.c:register_name(483)
register_name: NetBIOS name DEBIAN-LENNY-A320N is too long.
So I changed it to: Debian-Lenny.

Now, I can see the share from vista but it tells me "logon unsuccessful". All pc's have the same user names and passwords. So I tried smbpasswd again and it works! The only thing I can think of is I typo'd twice entering my password the first time.

Thanks for all your help. It is much appreciated!
 
Old 02-09-2009, 08:51 AM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,299

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Happy to hear you have had success.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Lenny Xfce - Windows bigger than screen Red_Shadow Linux - Desktop 8 02-03-2009 10:11 PM
Debian Lenny Samba Configuration Issue Sader Debian 1 01-27-2009 04:26 PM
[Debian Lenny::Samba/CIFS] Network File Transfers Slow t3hl33td4rg0n Linux - Server 0 03-12-2008 11:11 PM
dual boot problem on debian lenny and windows sarajevo Debian 3 03-10-2008 09:45 PM
setting up Samba so i can access a dir from my other Windows PC's andara Linux - Newbie 3 11-21-2003 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration