Results 1 to 11 of 11
Thread: Samba Question ...
-
03-10-2004, 03:28 PM #1Web Hosting Master
- Join Date
- Oct 2002
- Location
- New York's Capital District
- Posts
- 2,198
Samba Question ...
Hello,
Currently I have a Fedora box setup with Samba 3 running on it. I have it setup to be managed with SWAT ... and I have the ability to let my internal XP boxes map network drives to it.
What I want to do is allow others outside of the network (remote employees) to be able to map a network drive to this box.
It is currently behind a router ... any ideas on this? Let me know.
Also, anyone know what ports windows uses to map a network drive to IP?Know It All Solutions Incorporated
Web Design, Web Development and Web Hosting
-
03-10-2004, 03:35 PM #2Web Hosting Guru
- Join Date
- Nov 2002
- Location
- Bay Area, California
- Posts
- 309
Unless your employees can connect to your network via vpn or some other secure method I would not recommend this.
Sunwave Communications
http://www.sunwave.com/
Safety - Service - Economy
-
03-10-2004, 03:38 PM #3Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
It's port 137 and 139... or maybe just 139, I can't remember for sure.
Forward those two ports to your Samba box, and they should have no problems mounting the drives.
-
03-10-2004, 04:03 PM #4Web Hosting Master
- Join Date
- Oct 2002
- Location
- New York's Capital District
- Posts
- 2,198
Originally posted by Pat H
It's port 137 and 139... or maybe just 139, I can't remember for sure.
Forward those two ports to your Samba box, and they should have no problems mounting the drives.
http://servername.com/workgroup/share ?Know It All Solutions Incorporated
Web Design, Web Development and Web Hosting
-
03-10-2004, 04:06 PM #5Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Originally posted by KIAHost
And when mapping the drive what would the map name look like?
http://servername.com/workgroup/share ?
(I use \\192.168.0.1\freebsd, then I'm prompted for a login and voila.)
If they wanted to mount a drive in Windows Explorer: Right click on 'My Computer' then click 'Map Network Drive' and pick a Drive Letter, then below that enter in "\\SAMBAIP\Share", then select 'Connect Using A Different Name' and have them enter in their login.
-
03-10-2004, 04:32 PM #6Web Hosting Master
- Join Date
- Oct 2002
- Location
- New York's Capital District
- Posts
- 2,198
It works internally great .. but it won't make it way through the router to the box :-(
Know It All Solutions Incorporated
Web Design, Web Development and Web Hosting
-
03-10-2004, 04:40 PM #7Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Originally posted by KIAHost
It works internally great .. but it won't make it way through the router to the box :-(
Perhaps you could message me your external IP address and I will see if it's indeed open or not.
-
03-10-2004, 04:48 PM #8Web Hosting Master
- Join Date
- Oct 2002
- Location
- New York's Capital District
- Posts
- 2,198
I just did a nmap from an external server and this is what I get:
21/tcp open ftp
80/tcp open http
111/tcp open sunrpc
139/tcp open netbios-ssn
443/tcp open https
445/tcp open microsoft-ds
901/tcp open samba-swat
32770/tcp open sometimes-rpc3Know It All Solutions Incorporated
Web Design, Web Development and Web Hosting
-
03-10-2004, 04:55 PM #9Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Originally posted by KIAHost
I just did a nmap from an external server and this is what I get:
21/tcp open ftp
80/tcp open http
111/tcp open sunrpc
139/tcp open netbios-ssn
443/tcp open https
445/tcp open microsoft-ds
901/tcp open samba-swat
32770/tcp open sometimes-rpc3
Also, if you have "smbclient" on your external machine you could try: smbclient -L SAMBAIP -U username and see if it connects and allows you to login with the password.
-
03-11-2004, 12:57 AM #10Web Hosting Master
- Join Date
- Oct 2002
- Location
- New York's Capital District
- Posts
- 2,198
Pat H ... thanks for the insight.
I didn't have any hosts deny ... but I did have hosts allowed ... and I added my IP and all is fine.
Thanks.Know It All Solutions Incorporated
Web Design, Web Development and Web Hosting
-
03-12-2004, 04:35 PM #11Web Hosting Master
- Join Date
- Oct 2002
- Location
- New York's Capital District
- Posts
- 2,198
I have another related question ...
Now I am trying to password protect my samba share. It works if I turn on "guest ok" but if I turn it off and try to access with the username and password that is associated with it it doesn't allow me to map the drive from a windows xp box. Is there a special way to format the username?
Here is the share specific portion of my smb.conf file:
[kiafiles]
path = /home/kiafiles
valid users = kiafiles
admin users = kiafiles
read only = NoLast edited by KIA-Joe; 03-12-2004 at 04:49 PM.
Know It All Solutions Incorporated
Web Design, Web Development and Web Hosting