LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2004, 04:29 PM   #1
trekgraham
LQ Newbie
 
Registered: Apr 2004
Location: Woodstock,IL USA
Distribution: Ubuntu 8.04 Hardy
Posts: 20

Rep: Reputation: 0
Unhappy Trouble configuring Samba with Fedora, any advice, heres my smb.conf


Now I have ran the gui samba setup standard with fedora core 1, but i did some editting from smb.conf. Any ideas, should I just manually configure and any advice.
I am trying to share filespace with my wifes pc on a different isp, dont laugh, my wife likes cable and i need dsl for my server stability, not too mention isp offers static ips
So im looking to share accross internet from samba, any advice, im going to kick her cable in a few weeks and run a crossover cable or a router depending on amount of money left after all my bills. Thanks,
Derek
from /etc/samba/smb.conf:
global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = Palatine
# server string is the equivalent of the NT Description field
# server string = samba server
server string = Derek Fedora Linux
# 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
; hosts allow = 192.168.1. 192.168.2. 127. 24.15.215. 24.15.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
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
; printing = bsd

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log

# 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.
# Use password server option only with security = server
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd
 
Old 04-30-2004, 11:27 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
This is more of an idea than a concrete answer to your question. If you were to establish a Virtual Private Network (VPN) between your systems, it should be possible to use Samba to make a connection between them. Once you have the VPN set up, the two systems should act like they are on the same LAN and in principle, Samba should work.

I have a hardware-based VPN between work and home using Linksys VPN routers. I just unsuccessfully tried to connect to a samba server at work, but I think the firewall on the other end is blocking my subnet. The server firewall wasn’t set up with this particular connection in mind.

My VPN is used to facilitate remote control across the internet using windows-based Altiris Carbon Copy. You just use the remote LAN address to connect. Likewise, a network camera at work can be reached by using its LAN address. Although XP often fights with me when trying to go across the VPN, Win98 never has a problem. Win98 sees the local and remote workgroups and individual systems just like they were all on the same LAN. I don’t see why Samba wouldn’t work, too.

As a side note, when you hear about VPNs, you get the idea that they are very difficult to configure and maintain. The hardware-based VPNs are very easy to set up. Software-based VPNs look straightforward and XP seems to be set up to establish VPNs right out of the box. I have never looked into the linux side of VPNs, but I see threads in this forum about VPNs, so it must be doable.
 
Old 05-01-2004, 07:45 PM   #3
Mikecore
Member
 
Registered: Dec 2003
Distribution: Fedora Core 1
Posts: 35

Rep: Reputation: 15
Samba

your making it to compilated try something like this

[global]
workgroup = MSHOME
encrypt passwords = yes
wins support = yes

[Storage]
comment = NetWork Harddrive
path = /share
read only = no
guest ok = yes

this is a very simple smb.conf that I run I have three linux boxes and two windows.
and it works just fine.

or you could try using SWAT to auto config your smb.conf file.

I haven't tried it but its supposed to be good.
 
Old 05-01-2004, 08:12 PM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
trekgraham: Regarding Samba sharing across the internet, remember that your upload speed is probably pathetic. Actually, even the download speed is pathetic compared to 100 Mbps. I thought about doing backups from home (see my comments above) to the work server, until I calculated how long it would take. That’s why I never tried to make the connection before.

Like you said, it would probably be faster/cheaper to stick another NIC in each system and connect them peer-to-peer with a crossover cable. Or, you could use wireless NICs peer-to-peer. Unfortunately, wireless performance is usually poor, unless the systems are in adjacent rooms. FYI, I own two wireless “G” routers and a stack of wireless NICs, and there are all back in their original boxes. Wireless isn’t what the manufactures crack it up to be.
 
Old 05-01-2004, 08:33 PM   #5
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
I wold not open 137 and 138 to the internet if my life depended on it. I guess some sort of van solution might work but it would definatley be easier, cheaper and safer to network. Most cable modems can usb interface, you could have a router getting the dsl public ip and use the hub capabilities and you both use different gateways.

I just ditched cable for dsl, it is a little slower but it sure makes up for it in dependability :-)

Tom
 
Old 05-03-2004, 11:38 AM   #6
trekgraham
LQ Newbie
 
Registered: Apr 2004
Location: Woodstock,IL USA
Distribution: Ubuntu 8.04 Hardy
Posts: 20

Original Poster
Rep: Reputation: 0
yeah pretty much i wanted disconnect her cable and upgrade my dsl one notch to where i got a static ip, cause i am running a ircd off of this, which has no problems, but a lil extra bandwidth never hurts, my current connection is a 500-1.5mbps down and 128 min upload, main problem i have is I would prefer the option for static ips(they only offer a pack of 5, fun fun, dunno what i will do with the other 4, i only got 2 pcs, mine and my wifes, ill end up getting a crossover till I can afford a router, ill use firestarter to firewall my connection and share it too also the upgrade includes an increase of bw from what i said up above, to 1.5-3.0mbps(min of 1.5) down, and a min upload of 256K
 
Old 05-03-2004, 12:37 PM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
trekgraham: The dynamic IP address issue is fairly easy to work around. Look at DynDNS.org, which offers coverage for up to 5 dynamic IP addresses for free (see the “Dynamic DNS” option). I have been using Dynamic DNS service for about a year without any problems.

To use the service, you select a name like somename.gotdns.org, and then requests to their DNS server for that name point to your local IP address. If you get a router that supports DynDNS.org (e.g., many Linksys routers do), reporting your IP address to DynDNS.org is trivial to set up. Every time the IP address changes, the router reports the new address to DynDNS.org. Otherwise, you need a software client to report your IP address when it changes. A number of IP address reporting software clients are listed on their web site.

As a side point, if you try the service and like it, think about paying the $9.95/year “account upgrade” to help support the organization’s services. Although DynDNS.org is an incorporated entity, it is not a business in the true sense of the word.
 
Old 05-03-2004, 03:29 PM   #8
trekgraham
LQ Newbie
 
Registered: Apr 2004
Location: Woodstock,IL USA
Distribution: Ubuntu 8.04 Hardy
Posts: 20

Original Poster
Rep: Reputation: 0
trouble with dyndns, when you are putting your irc server into the round robin, you need to have it be the ip address, not domain, so i cant get users connected randomly, ie irc.xplosionirc.net or whatever network you are with Cheers, I have been using no-ip.com for awhile, pretty good service for the price of free. Just if I wana run a small business i have a domain address a friend will let me use. thanks tho
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 12:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
samba smb.conf lukalinuix Linux - Networking 5 06-21-2004 06:32 AM
/etc/samba/smb.conf tsitras Linux - Newbie 2 04-09-2004 08:33 PM
Problems connecting to samba shares from w2k or XP systemafter configuring smb.conf f marvc Linux - Software 0 06-09-2003 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration