Hi here's my smb.conf it does more or less what you want to do and I can access without problems from both XP and other Fedora machines on my LAN:
Code:
[global]
netbios name = stefan
workgroup = my_workgroup
security = share
log file = /var/log/samba.log
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 10.0.0.7 10.0.0.8 10.0.0.9
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes
[shared]
path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes
username = yzelle jeremy stefan jean
read list = yzelle jeremy stefan jean
write list = yzelle jeremy stefan jean
valid users = yzelle jeremy stefan jean
FOR WINDOWS:
This allows any XP or Windows 7 user listed above (Yzelle, Jeremy, Stefan, Jean) in my LAN to access my Windows C:\shared folder while my machine is in Linux.
Additionally, as the above poster states, ensure that the folder you want to share on the Linux side has the correct permissions set (using chmod) to allow it to be readable (and writable, if you want) by those users listed.
Also note that the users above (Yzelle, Jeremy, Stefan, Jean) all exist as -Linux- users on my machine, and they must identify themselves as such on the Windows side by username and their Linux password, to get into my C:\shared (Windows-wise) folder. They can then read and write files in this folder.
FOR LINUX:
The above config file also allows users if in Linux to access my C:\shared while I'm in Linux on my machine via this command on another Linux machine which has SAMBA client facilities installed, and a directory in the /mnt folder onto which to mount the shared folder:
Code:
mount -t cifs "//10.0.0.7/shared" /mnt/stefan_shared -o username=jeremy,password="jeremy_password",uid=rylan,dirmode=0775,filemode=0775
e. g. on a Linux machine other than mine, user Jeremy can use the above in a BASH script to connect to my C:\shared on his Linux machine, and then read and write files in my C:\shared by going to /mnt/stefan_shared on his Linux machine, while in Linux.
Note that to make the above script work you need to create a mount point by doing
Code:
mkdir /mnt/stefan_shared
while logged in as root inside a terminal instance on the remote Linux machine.
Also note of course that I use NTFS-3G to read and write my Windows partition on which C:\shared is located (/mnt/win/shared from my internal Linux perspective), and I then share this NTFS-3G accessible directory out via SAMBA - it is a perfectly valid approach and works well.
NOTE: All the above of course assume your network is 100% correctly configured, you've actually got access between the machines ALREADY set up and 100% working, AND your firewall / SELinux instances have already been taken care of - e. g.
only if you've already got all the -other- requirements sorted for a successful network connection, will the above work / be of assistance. The above won't mean much if your machines cannot talk among each other in the first place.