[Webinar] Streamline your web hosting managementRegister Today


On a CENTOS box how do I configure SAMBA to share directorys to my Windows Server 20003 box?

Posted on 2010-03-28
Medium Priority
Last Modified: 2013-11-12
I have a FreePBX installation with a stripped down CentOS core and no GUI for the OS.  It appears to have Samba installed:

[root@localhost asterisk]# yum list | grep samba
samba.i386                             3.0.33-3.15.el5_4.1      installed
samba-common.i386                      3.0.33-3.15.el5_4.1      installed
samba-client.i386                      3.0.33-3.15.el5_4.1      updates
samba-swat.i386                        3.0.33-3.15.el5_4.1      updates
sblim-cmpi-samba.i386                  0.5.2-35.el5             base
sblim-cmpi-samba-devel.i386            1-35.el5                 base
sblim-cmpi-samba-test.i386             1-35.el5                 base
system-config-samba.noarch             1.2.41-5.el5             base
[root@localhost asterisk]#

So, now how do I configure samba to allow sharing of specific directories?
Question by:hmaupin
  • 3

Author Comment

ID: 28903218
For example, how do I share /etc/asterisk  and /var/log/asterisk so I can use text editing tools and search tools on the Windows server?  Thanks, Harold

Author Comment

ID: 28903534
PS:  I am not sure I want to do the Kerboros thing joining the domain, the Asterisk and FreePBX users are all set up and working nominally well, will trying to join the domain mess them up?  Thanks!
LVL 30

Accepted Solution

Kerem ERSOY earned 300 total points
ID: 28904344

If you want to join the domain and want to allow domain users you'll need to mess with Samba, LDAP and Kerbereos. I am afraid it would mess up your LDAP server if not kerberos. Also you'll want to change the required authentications too.

I wont suggest you to go this far to integrate it to the domain. If all you want to do is simple fie sharing you won't need to join to a domain. Just a samba share would do for your. In this case you'll map users to the allowed lists over the local CentOS.

Another problem is it is not a good idea to share the /etc/asterisk directory. As you know windows is using the lien termination character of CR+LF while Linux / UNIX systems use just a LF so it might mean that you might just edit a file in windows and then your Linux systems wont  start using them and complaining.  Also it is very easy to delete a file in windows while it might not be possible to bring it back in Linux...

All in all Though I won't suggest you co connect this specific trimmed down system to windows over the samba . If you want to do daily file transfer operations and management I'll suggest you to use:

PuTTY (SSH Client), WinSCP SFTP Client with a Norton commander like interface and Explorer integration) and VNC Client (Remote Terminal client like application which is capable of accessing your system over the GUI if X and display manager such as Gnome is installed over the system.

All these tools are OpenSource and freeware you can download them with a quick Goole search.


Assisted Solution

nasirbest earned 200 total points
ID: 28905038
why not  some scp client, by scp client you have to change nothing at linux, and can access every file


Author Comment

ID: 29097045
Ah, yes, SCP & SSH, thanks for reminding me, it has been a long time.  I have to admit that is a better strategy for a dedicated system with no GUI and sensitive files.  I have UltraEdit, which preserves the UNIX format, but this is safer and better.  Thanks!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question