Samba Loopback error - sharing problem
I got some of my issues resolved and got sharing working and then I rebooted and not it does not work again...
I am using MDK 9.1 and I managed to get everything working yesterday and then I rebooted.
Now I see an error along the lines of when samba comes up:
error connecting to 127.0.0.1 connection refused
921 ccnnection to localhost refused
SMB connection failed
/\ What does this mean?
When I ran smbclient -L localhost when I logged on I did not see my WindowsXP box. Then I ran
testparm
and
nslookup Computer ---that is the name of one of my logons on my WindowsXP box
i get this output
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 167.206.3.135
Address: 167.206.3.135#53
** server can't find Computer: NXDOMAIN
/\ What does that last comment mean?
now if I run smbclient -L localhost I see this:
added interface ip=192.168.123.25 bcast=192.168.123.255 nmask=255.255.255.0
Password:
Domain=[HOME] OS=[Unix] Server=[Samba 2.2.7a]
Sharename Type Comment
--------- ---- -------
public Disk Public Stuff
public2 Disk Public Stuff
IPC$ IPC IPC Service (Linux)
ADMIN$ Disk IPC Service (Linux)
kevin Disk Home Directories
Server Comment
--------- -------
COMPUTERLIVINGR COMPUTERLIVINGR
LOCALHOST Linux
Workgroup Master
--------- -------
HOME COMPUTERLIVINGR
It is showing my WindowsXP box (see above) but I still can not access the shares on my MDK box. I was able to yesterday....I don't get it. I do have security set to share and my host file shows
127.0.0.1 localhost
and imhosts shows this
127.0.0.1 localhost
my last testparm:
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[public]"
Processing section "[public2]"
Loaded services file OK.
Let me know if you want to see my definitions
What am I doing wrong??? This is getting very frustrating.
Someone suggested looking at netstat -an but I have no idea what am i looking for under netstat -an
I did restart samba already, that did not seem to help. How do I check my firewall settings. I do not have one on my XP machine, just a SMC 4 Port Router running the network. Do I need to change something below to allow a connection to the localhost?
Here is my smb.conf
#======================= Global Settings
=====================================
[global]
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = HOME
# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
; netbios name =
# server string is the equivalent of the NT Description field
server string = Linux
# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = lpstat
load printers = yes
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
printing = cups
# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# The following are needed to allow password changing from Windows to
# also update the Linux system password.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
%n\n
*passwd:*all*authentication*tokens*updated*successfully*
# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS
names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
#============================ Share Definitions
==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
# A publicly accessible directory
[public]
comment = Public Stuff
path = /data/mp3
write list = kevin, mdk
read list = kevin, mdk
guest ok = no
[public2]
comment = Public Stuff
path = /home
write list = kevin, mdk
read list = kevin, mdk
guest ok = no
I installed SWAT and can open the browser but how do I make sure it is enabled?
Should I have done anything with this part that was remarked out of my conf?
# 4. Security Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution
does
# not work for all the hosts in your network.
; hosts allow = 192.168.1. 192.168.2. 127.
; hosts deny = all
It is just odd that it worked then I rebooted and now it does not work.
|