Hi,
I need to configure a shared folder on my Slackware 12.1 box that will be accessible by any Windows XP machine on the network. I want to allow everyone read/write permission to my /var/www/htdocs folder on my slackware box without a username/password login, if possible.
I used SWAT to configure my smb.conf file. I got my Windows XP machine to view the slackware box, and the shared directory inside of it. However, when I tried to open that shared directory, I got an error:
Quote:
\\Host is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
The network path was not found."
|
I tried using iptables and enabling both tcp and udp ports 137-139 and 445 (even though I read that slackware does not block any ports by default). The command
iptables -t nat -A PREROUTING --in-interface eth0 -p tcp --dport 137 -j DNAT --to-destination 192.168.0.5 appeared to go through for both tcp and udp on each of the four ports that I mentioned, but after having done that I could only view the slackware box from my windows xp box, no longer open it.
I then tried manually editing my smb.conf file according to
http://www.foogazi.com/2006/11/01/si...ackware-setup/ that guide, but that didn't change anything.
I ran the smbd 'in the front-end' (as was recommended) on my slackware box so I could see some action when I tried to do telnet from my XP box... but it ultimately failed and the XP machine said that it could not connect.
Please help me figure out how to get this file sharing configured! I've done searching through this forum and lots of google and cannot find a solution to my problem.
Here are my details:
- All of my network IPs are assigned by DHCP (but I don't think this will matter as long as I don't map a network drive and just go to 'View Workgroup Computers' to transfer files, which is fine)
- Workgroup name: Mshome
- Slackware 12.1 Box: Currently 192.168.0.4
- Trying to share /var/www/htdocs for access by any windows xp user on my home network
- Windows XP Box: Currently 192.168.0.5
- Windows XP box logs on using an account named 'Naro' with no password
- I have created a user on my slackware box called 'naro' with no password
Here is my smb.conf file:
Code:
[global]
workgroup = Mshome
server string = Slackware 12.1 Server
security = user
load printers = yes
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY
[home]
comment = Home Directory
path = /var/www/htdocs/
valid users = naro
writable = yes
I've tried adding 192.168.0.5 through host allow... no luck.