Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-08-2009, 04:25 AM
|
#1
|
Member
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133
Rep:
|
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
|
|
|
02-08-2009, 06:16 AM
|
#2
|
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
|
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?
|
|
|
02-08-2009, 12:28 PM
|
#3
|
Member
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133
Original Poster
Rep:
|
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!
|
|
|
02-08-2009, 01:03 PM
|
#4
|
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
|
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 ?
|
|
|
02-08-2009, 01:37 PM
|
#5
|
Member
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133
Original Poster
Rep:
|
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.
|
|
|
02-08-2009, 06:15 PM
|
#6
|
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
|
The only other thing I can think of, is to add this line to the global section, and restart samba.
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.
|
|
|
02-08-2009, 08:40 PM
|
#7
|
Member
Registered: Nov 2005
Location: Colorado
Distribution: Debian
Posts: 133
Original Poster
Rep:
|
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!
|
|
|
02-09-2009, 08:51 AM
|
#8
|
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
|
Happy to hear you have had success.
|
|
|
All times are GMT -5. The time now is 08:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|