If you want this to work, you need to set up static IP addresses, and not use DHCP. Much of the problem is resolving the names of shares to an IP address. DHCP allows the addresses to change, so how can it work all the time?
Pick out a subnet, it should be set up to match your router. Most of them come set for 192.168.0.x or 192.168.1.x with a mask of 255.255.255.0. It doesn't matter, which one, I would suggest you use the one that now matches your router, then you don't have to re-configure the router.
In XP, you can set a static IP address, you also need to find out the DNS addresses, although most routers will pass that to the using systems. Your router becomes the gateway. If the lan address is 192.168.0.x then the gateway will most likely be 192.168.0.1. That needs to be set in each system.
This is Fedora, I don't know the gui tools to set IP addresses, so maybe you do? If not, we can find out. There will also be files that we could directly edit. That is the fastest way, if you know what files. Each distro seems to do their own thing when it comes to the names of the files to edit. Once again, we can find out.
Now, for your smb.conf file. I copied the file, removed most of the comments. What you posted is very difficult to follow, with the ton of comments. So, I'm posting the short version, that has the lines that do something.
Here is the 'short version'.
[QUOTE]
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Printing ##########
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# load printers = yes
# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
; printing = cups
; printcap name = cups
############ Misc ############
#nothing
#======================= Share Definitions =======================
;[homes]
; comment = Home Directories
; browseable = no
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
; write list = root, @ntadmin
# A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes
# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
# /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
#
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[Documents]
path = /home/anna/Documents
writeable = yes
; browseable = yes
guest ok = yes[QUOTE]
Note, I did not remove all the comments, since they are there to help you set up some things you want to share.
There isn't much in the Global section. Not sure about the password DB backend.
There is no printer share, I left a few of the comments so you know where to put them. FOr now, leave the printer alone.
You have no home shares, this is usually each linux users home directroy. Set up the right way it allows a user to share all files from their own home, to themselves on another system. Other users can not connect to them.
This is the only share I could find.
Quote:
[Documents]
path = /home/anna/Documents
writeable = yes
|
I'm going to make another post, I'll post my setup. You can have a look, and possibly see what to copy and modify to your own needs. This may help you out, I hope...