LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-24-2004, 09:41 AM   #1
glennc
Member
 
Registered: Feb 2004
Posts: 38

Rep: Reputation: 15
Newbie- Samba setup


Hello to all,
I hope someone can help a newbie setup Samba. I've read numerous HOWTO's and links to info and they don't help as they are very cryptic.
I want to set up a peer-to-peer network. My main computer is running w2000 and has the modem and printer attached to it. I'm running RH9 on my other box. They are on a 100mbps ethernet network.
When I installed RH9, I had Samba installed and set the computer up to a DHCP. It autoconnected to my modem and I can get to the Internet with it.
I CAN NOT get the printer connected. I installed a printer as local and then edited it to SMB. The user was Administrator and the password was the same as my root and Administrator on the W2000 box. I previously had the 2nd box as ME (which I removed) and had a workgroup name and computer name. My W2000 is skylark1 on VALERNON. It set the printer up and made it default, but will not print. I have the printer shared on the W2000 box.
I would also like regular access to the W2000 assets ie: files, directories and possibly the CD Burner, as well as the printer.
Route shows the W2000 IP address as the default gateway, 127.0.0.0 and two addresses that I don't know what they are. ifconfig show the ethernet card with another IP address 192.168.0.25 as active and lo working. I can not contact the W2000 address 192.168.0.1. I can ping the a URL, the 127.0.0.0 and one of the addresses in the route (192.168.0.0). Please help.
When I smbclient -L \\skylark1 I get not connection.
Glenn
 
Old 03-24-2004, 12:03 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
sounds like you have a few things confused. samba is for file and printer sharing, it has nothing to do w/your internet. the first thing you need to do is make sure you've got a valid address. issue

ifconfig

that'll show you your configuration info. for samba start here

http://us1.samba.org/samba/docs/using_samba/toc.html

http://hr.uoregon.edu/davidrl/samba/

take it 1 step at a time, start w/some basic configuration t get everything working, then build on it. trying to do everything at one time can get confusing.
good luck.
 
Old 03-25-2004, 07:20 AM   #3
glennc
Member
 
Registered: Feb 2004
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks PEACEDOG,
Using ifconfig, it shows 2 sections. One is the loopback and the other has a inet address? and a Bcast address? I'm trying to make it through the first URL site as I've tried the second. I'm still in over my head, but I'll keep reading. So far everything is about RH9 as a server, but I have it installed as a personal computer. Thanks again for your response. Wish me luck it's going to be awhile.
Glenn
 
Old 03-25-2004, 09:59 AM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
well, good luck. :-) you'll find alot of help at the links for samba, i've found it best to start w/ a simple conf and build on it. there is also a ton of useful info in the smb.conf.sample file, you'll find it in the /etc/samba directory. lots of options to add and what they mean. i'd use it for the info, but, write the smb.conf by hand, you may also want to look into swat

http://samba.org/doxygen/samba/group__swat.html

again, good luck.
 
Old 03-26-2004, 05:20 PM   #5
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Rep: Reputation: 16
New samba problem

Hello, I think I have a similar problem, so i post my problem on this forum. I am also a newbie.

I am using my laptop with centrino technology and WinXP to connect the wireless router and like that to the internet and to other laptops.

A Linuxbox connects with an ethernet cable straight to the wireless router.

The Linuxbox is a slow box made out of spare parts, with RedHat9. I have a ntfs slave 120 Gbyte Hard drive installed on it, which I managed to make readable, not writable 'cause its not safe.

Mission: Share that hard drive on all win-boxes on the wireless router LAN, as all my multimedia files are stored on that disk.

Tip for Glennc, try to connect on the internet through the Graphical Network Device control (to set up network card if you havent made it working yet), and then the Graphical Internet Configuration something, both under Start->System tools. I made internet this way working on this slow machine.

I think my solution is within Samba. So here are my specifications:
The contents of smb.conf are:

[global]
workgroup = STUDENTHOME
server string = UncleFloServer
encrypt passwords = True
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY IPTOS_LOWDELAY

domain master =Yes
local master = Yes
preferred master = Yes
os level = 65

security = user
netbios name = UncleFlo

dns proxy = No
hosts allow = ALL
debug level = 1

create mask = 0644
directory mask = 0755
level2 oplocks = True
read raw = no

[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775


[public]
comment = Public Multimedia Storage
read only = Yes
path = /mnt/storage
guest ok = yes
public = Yes


I doubt whether I should use the [homes]
This is a file that I tried on my own, based on another existing example that I found on the internet. Everything could be completely wrong.
When typing smbstatus, I get:

Samba version 2.2.7a-security-roll-up-fix
Service uid gid pid machine
-----------------------------------------

Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting


BUT
on my WinXP laptop, I shared a folder called 'LapTopFloDisk'. On the Linuxbox I typed:
smbmount //192.168.1.3/laptopflodisk /mnt/network

and that works fine! I even can copy files vice versa on my linuxbox master hard drive, but this is exactly the opposite thing i want to achieve; I want contents on my LinuxBox shared on the windows boxes.

Anyone able to help me? Im sure this could be to any use for Glennc...
 
Old 03-27-2004, 05:38 AM   #6
glennc
Member
 
Registered: Feb 2004
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks florian_mrt,
So far things are going very slowly as I'm trying to read the volumes of material on samba. This will take months. Your example gives me something to follow and to try to understand. The Internet connection occured automatically during setup. On my W2K box I have TCP/IP, NetBEUI, Client for Microsoft Networks and File and Printer Sharing. Thanks again for the example. I wish us both luck and the kindness of strangers.
Glenn
 
Old 04-04-2004, 10:06 PM   #7
Garak
LQ Newbie
 
Registered: Feb 2003
Location: Seattle, WA
Posts: 16

Rep: Reputation: 1
Easy Documentation

There is a fairly new website that has the easiest to understand documentation I've seen out there. You might want to take a look at the Samba documentation. It covers how to setup a domain controller. Even if you're not setting up a domain controller, the information is still good.

http://www.unixpages.com/howtodispla...ler_(PDC).html
 
Old 04-05-2004, 07:40 AM   #8
glennc
Member
 
Registered: Feb 2004
Posts: 38

Original Poster
Rep: Reputation: 15
Hello Garak,
I appreciate your direction. What is the difference between making the linux box a PDC or just a workgroup. I am so confused..........
Thanks
Glenn
 
Old 04-05-2004, 07:59 AM   #9
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Rep: Reputation: 16
How far does this PDC thing relate to the box being a 'client' or a 'master'?
 
Old 04-05-2004, 03:03 PM   #10
glennc
Member
 
Registered: Feb 2004
Posts: 38

Original Poster
Rep: Reputation: 15
Hello forian_mrt,
Honestly I don't know. I have a W2Kbox with modem and printer. A linux box which I'd like to connect to the W2K printer and share files with it.
Glenn
 
Old 04-05-2004, 05:45 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
I have a W2Kbox with modem and printer. A linux box which I'd like to connect to the W2K printer and share files with it.
let's have a look at your /etc/samba/smb.conf. have you set up shares on the windows machine? if all you want is a small home network w/some file and printer sharing, this shouldn't be too painful. i'll try to help you out. ;-)
 
Old 04-05-2004, 09:15 PM   #12
geekzster
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu 10.10
Posts: 18

Rep: Reputation: 0
im having similar problems...

am eagerly waiting to read what solution is....

I have cable internet, then Im behind a router/ NAT firewall. it uses its own dhcp

2 winXPro boxes and 1 rh9 box

1 lexmark printer

I could care less really about the printer. all I really want is for simple filesharing between all boxes

I can ping my router and myself, and I can also ping both xp boxes all without any packet loss

As it is right now, samba sort of works, ie, I can sometimes login to my other boxes from the rh9 box. however it is extremely sluggish and it asks for pw info every time. and sometimes it doesnt work at all...as it acts like its timing out

plus I cannot see my rh9 box from the xp boxes.

currently I do not have the firewall enabled on rh9, as I have a good firewall built in to the router, and because i do not want to complicate anything with firewall rules just yet...one thing at a time, ya know?

am currently at 4 hrs of research...granted I have learned quite a bit...but just not what I need to learn right now...LOL
 
Old 04-05-2004, 09:31 PM   #13
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Rep: Reputation: 16
PPL, Lets copy over our smb.conf file contents like I did before and lets compare ! PLZ state clearly in how far your smb.conf contents are affecting the network readability.

EG: My RH9 box has got the smb.conf contents mentioned above and I can see my RH9 box in my win neighborhood. I cant access its contents yet but I dont think Im too far from achieving that goal.

I can upload and download contents through my RH9 using smbmount
EG: #smbmount //192.168.1.3/sharedfolder /mnt/network

Now, copy all your smb.conf contents here plz !!! Lets learn from each other !
 
Old 04-05-2004, 09:59 PM   #14
geekzster
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu 10.10
Posts: 18

Rep: Reputation: 0
as it turns out my vid card on my linux box just took a dump on itself...

gonna have to wait a few days till I get it replaced

but I can tell you right now, I havent done a thing to my conf file, I didnt even know where it was until about 20 mins ago LOL

and here you thought you were a newb! this is my first day on linux!
 
Old 04-06-2004, 07:11 AM   #15
glennc
Member
 
Registered: Feb 2004
Posts: 38

Original Poster
Rep: Reputation: 15
Hello PEACEDOG,
I recently changed to SuSe 9.0 Professional. I hope this is not a hindrance.
My smb.conf file is the generic that was installed. On boot up, it shows smb filesytem mounted but unused.
smb.conf
[global]
workgroup= WORKGROUP <-Altered
netbios = Duquesne <-Added
os level = 2
timeserver = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
printing = CUPS
printcap = CUPS
socket options = S0_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
security = user <-It added itself

[share] <- Added this section
comment = share
path = /home/glenn/share
public = yes
browseable = yes
writeable = yes

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
create mask = 0640
directory mask = 0750

[printers]
comment = All Printers
path = /var/tmp
create mask = 600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

On the W2K box, I have a Lan with: Clients for Microsoft Network
File and Printer Sharing for Microsoft Network
Netbeui
Internet Protocol (TCP/IP)
TCP/IP is set up as: Use following address 192.168.0.1
subnet mask 255.255.255.0
Default Gateway is BLANK
Use Following DNS Server Address: 192.168.0.2 which is NOT the IP of the linux box. Also Wins is not actuated.
I have the C:\TEMP directory shared as well as the printer as CanonBub.
I hope this helps and I REALLY appreciate any help you can supply. I've read many sites on Samba and am getting more and more confused instead of the reverse. Maybe partial brain death?!?!!
Thanks
Glenn

Last edited by glennc; 04-09-2004 at 08:27 AM.
 
  


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
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
sendmail setup newbie complus Linux - Software 4 11-12-2003 10:07 PM
interesting newbie setup macewan Linux - Newbie 5 05-02-2003 02:23 PM
NEWBIE wants to setup LAN lhoff Linux - Networking 12 03-22-2002 04:21 PM
newbie ipchains setup HELP skittles Linux - Security 5 09-13-2001 03:23 PM

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

All times are GMT -5. The time now is 11:12 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