LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to create a simple samba share (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-create-a-simple-samba-share-916888/)

umcpgrad 12-03-2011 04:17 AM

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.

corp769 12-03-2011 04:21 AM

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

umcpgrad 12-03-2011 04:27 AM

Quote:

Originally Posted by corp769 (Post 4540869)
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.

corp769 12-03-2011 04:39 AM

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

umcpgrad 12-03-2011 12:19 PM

Quote:

Originally Posted by corp769 (Post 4540878)
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.

umcpgrad 12-04-2011 01:23 PM

any ideas?

corp769 12-04-2011 02:33 PM

You could always create a custom iptables script to allow by IP, if that's what you want.

umcpgrad 12-04-2011 07:45 PM

how do I just all one ip address to access the share?

coolsg5636 12-04-2011 08:28 PM

You can achieve this by editing following files.

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

Enties should be like this.

IPaddress Hostname

aazkan 12-04-2011 09:13 PM

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

umcpgrad 12-05-2011 07:18 PM

do I need to disable firewalls on windows or linux for the connection to go through?

coolsg5636 12-05-2011 08:06 PM

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.

umcpgrad 12-06-2011 01:08 AM

I followed the links provided it is not connecting with what I put within smb.conf

linux in malawi 12-06-2011 12:37 PM

download webmin from webmin page and u can do alot of things with it

umcpgrad 12-06-2011 03:10 PM

anybody got their own little smb that works?


All times are GMT -5. The time now is 08:11 PM.