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

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hmaupinAuthor Commented:
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
hmaupinAuthor Commented:
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!
Kerem ERSOYPresidentCommented:

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
why not  some scp client, by scp client you have to change nothing at linux, and can access every file

hmaupinAuthor Commented:
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!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.