Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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
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.
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
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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
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:
[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...
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
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.
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
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
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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. ;-)
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
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 !
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.