LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2006, 12:02 PM   #1
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Rep: Reputation: 15
Newbie Samba questions


I'm presently being deluged with paper about Samba. everything about Samba. Too much about samba! I need a real-life grep tool!

All my documentation is about samba server though. is that what I need, or am i talking more along the lines of smaba client?

Basically, I want to install Samba on my linux desktop so that it can be networked with 1) my other desktop that is windows, 2) the LAN that currently exists that has both linux servers, windows servers, and a whole bunch of windows desktops, and 3) getting my windows desktop to see my linux desktop.

I assume that the connections for all these scenarios are TCIP-based. Or can be TCIP based, and therefor we go with Samba rather than mounting hard drives or the like.

Correct?

So, to go back to my original question , would you then call my linux desktop a samba client or samba server?

and do i just set up samba as normal or is there something in particular I need to focus on , if we are not calling it samba server.

thanks.
 
Old 02-17-2006, 12:34 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
When your Windows machines "see" your Linux or when your windows machines access a share folder or maybe a printer in your linux machine, then you Linux machine is playing the role of a server. It is serving a shared folder, a shared printer...

When you want to access a shared folder in a windows machine, your linux is playing the role of a client.

Start by disabling the firewall in your linux machine and configure Samba as security=share.

Go ahead and post any problems back here.

see'ya,
 
Old 02-17-2006, 01:09 PM   #3
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
over lunch , I was told that the easiest simplest way to do what i want to do was to either a) network into a linux box that already exists as a samba server, even though no one is using it right now or b) set up a "network group".

Does this not make more sense?

(frantically looking in the indexes of all my books now.. .)
 
Old 02-17-2006, 01:43 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
I think that setting up a samba server is not hard. For start, there is just 4 settings you must change in global section of /etc/samba/smb.conf:
Code:
netbios name = THE_NAME_YOUR_LINUX_WILL_BE_SEEN_IN_WINDOWS
server string = Samba server on my linux
security=share
workgroup=NAME_OF_YOUR_WINDOWS_WORKGROUP_HERE.
To add a read-only share to your new samba server,
Code:
[MyLinuxShare]
        comment = My first samba share
        path = /path/to/your/share/on/linux
        read only = Yes
        browseable = Yes
and start your samba server.

The firewall issue I mentioned before is more trick. Windows need the broadcast packets and several TCP ports like 137, 138 and others I can't remober right now. So my advice to shutdown the firewall, at least in the internal interface.

regards,
 
Old 02-17-2006, 02:18 PM   #5
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
alright, but what about on the windows side? If I want my windows machine to see the linux box. I have to do something in microsoft?
 
Old 02-17-2006, 02:30 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by bowie101
alright, but what about on the windows side? If I want my windows machine to see the linux box. I have to do something in microsoft?
I know you are swamped by the documentation but you have to check this site out. It lays out everything pretty neatly.

Tux,
 
Old 02-17-2006, 03:34 PM   #7
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
alright. i've printed it out and added it to the pile.


what's the difference between Samba and NFS? (assuming NFS clienting can/does include Windows computers.)
 
Old 02-19-2006, 01:05 PM   #8
EricD
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by bowie101
alright. i've printed it out and added it to the pile.


what's the difference between Samba and NFS? (assuming NFS clienting can/does include Windows computers.)

You use NFS when you want to create a share between Linux machines.
You use SAMBA to configure your Linux machine to communicate with a Windows machine (initiated via the Windows machine).
You use SMBCLIENT when you to create a share from a Linux machine to a Windows machine.

I installed CentOS 4.2 (server) and installed the firewall. I set up my Linux side SAMBA via System Settings/Server Settings/SAMBA. The desktop installation did not have these options. I verified I could ping both my Windows machine and my Linux machine. I set up a password - using smbpasswd <username> on the Linux machine for the Windows user. At the Windows DOS prompt, I used the net use command to connect to my Linux machine. You can also use the Explorer/Tools/Map Network Drive option.

It may be easier, at first, to create a share on the Windows machine, then on the Linux machine, use the smbclient command - smbclient //<IP_of_Windows_machine>/<sharename>. You should be prompted for a password... if the connection is made and the share was setup properly. If this works, then test in the other direction.

Hope this helps.
 
  


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
2 Newbie Questions ... Dotmatrix29 Linux - Newbie 5 01-06-2006 04:05 PM
SAMBA Newbie Questions gblasius Linux - Newbie 3 09-26-2005 08:31 AM
Newbie in NEED!!! SAMBA questions!!! : ) Lord Ghost Linux - Networking 18 07-25-2003 04:06 AM
Newbie Samba PDC questions zos Linux - Networking 3 06-22-2003 05:06 PM


All times are GMT -5. The time now is 02:11 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration