LinuxQuestions.org
Review your favorite Linux distribution.
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 12-03-2011, 05:17 AM   #1
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Rep: Reputation: Disabled
how to create a simple samba share


I am trying to play around with my own home setting lab with windows 2008 r2 college edition with centos free edition. I want to play around with backing up my linux files to windows 2008 r2 standard. What is the easiest and best way to do so? thanks in advance.
 
Old 12-03-2011, 05:21 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Most distros have a GUI interface for configuring samba; So to simply answer your question, you can use the GUI configuration to create a "simple" share. It should be located within your settings menu.

Cheers,

Josh
 
1 members found this post helpful.
Old 12-03-2011, 05:27 AM   #3
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by corp769 View Post
Most distros have a GUI interface for configuring samba; So to simply answer your question, you can use the GUI configuration to create a "simple" share. It should be located within your settings menu.

Cheers,

Josh
I apologize Josh. I want to use command line to do this since I am trying to learn and get some practice with it instead of using the gui. Thanks again.
 
Old 12-03-2011, 05:39 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Ahh ok, that's cool
Check out the following link - http://www.cyberciti.biz/faq/add-sam...in-linux-unix/
There are many tutorials and loads of information online, but that link is one of the "simplest" that are out there. Overall, setting up individual shares is quite easy. Let me know if you need any other help!

Cheers,

Josh
 
1 members found this post helpful.
Old 12-03-2011, 01:19 PM   #5
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by corp769 View Post
Ahh ok, that's cool
Check out the following link - http://www.cyberciti.biz/faq/add-sam...in-linux-unix/
There are many tutorials and loads of information online, but that link is one of the "simplest" that are out there. Overall, setting up individual shares is quite easy. Let me know if you need any other help!

Cheers,

Josh
thanks I see:

[incoming]
comment = Icomming data
writable = yes
path = /home/incoming
Save close the file. Restart Samba :
# /etc/init.d/samba restart
If you are using Redhat/CentOS/Fedora core type:
# service smb restart


where do I allow certain ips to access the share? and what should the windows side be apply or how to access the linux side of the share? I guess what I am trying to say is how will windows side access or hitting that share? thanks.
 
Old 12-04-2011, 02:23 PM   #6
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
any ideas?
 
Old 12-04-2011, 03:33 PM   #7
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
You could always create a custom iptables script to allow by IP, if that's what you want.
 
0 members found this post helpful.
Old 12-04-2011, 08:45 PM   #8
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
how do I just all one ip address to access the share?
 
Old 12-04-2011, 09:28 PM   #9
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
You can achieve this by editing following files.

/etc/hosts.allow
/etc/hosts.deny

Enties should be like this.

IPaddress Hostname
 
Old 12-04-2011, 10:13 PM   #10
aazkan
Member
 
Registered: Jan 2008
Posts: 72

Rep: Reputation: 5
Adding to the suggestions above, you can aslo declare a host allow/deny in the smb.conf global section

Code:
hosts allow = 127.0.0.1 192.168.1.0/24 192.168.2.0/24
hosts deny = 0.0.0.0/0
and reload or restart samba
 
Old 12-05-2011, 08:18 PM   #11
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
do I need to disable firewalls on windows or linux for the connection to go through?
 
Old 12-05-2011, 09:06 PM   #12
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
Disabling firewall is not a good option. It totally depends on how your firewall(s) is(are) configured. You might need to add an exception to the firewall. You can achieve this by using iptables package in linux and as far as windows is concerned, it depends on which firewall you are using in windows.
 
Old 12-06-2011, 02:08 AM   #13
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
I followed the links provided it is not connecting with what I put within smb.conf
 
Old 12-06-2011, 01:37 PM   #14
linux in malawi
LQ Newbie
 
Registered: Jun 2011
Location: Blantyre malawi
Distribution: Redhat 9, fedora 13 and ubuntu 10.4
Posts: 9

Rep: Reputation: Disabled
download webmin from webmin page and u can do alot of things with it
 
0 members found this post helpful.
Old 12-06-2011, 04:10 PM   #15
umcpgrad
LQ Newbie
 
Registered: Dec 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
anybody got their own little smb that works?
 
  


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
SAMBA Simple Share arsmitty86 Linux - Networking 2 10-02-2007 02:09 PM
Simple Samba Share acerola Linux - Newbie 3 04-29-2007 01:59 AM
anyone have a simple samba - xp setup they want to share? mdm0173 Linux - Software 4 10-06-2006 04:40 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 08:27 AM
simple SAMBA share true_atlantis Linux - Software 3 05-28-2004 07:44 PM


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