how to create a linux export

I have one windows server and 2 linux servers.
I have created a shared folder on windows server  ( server A )
I have mounted the shared folder ( cifs.mount ) on linux server ( Server B )  /mnt

I want to be able to access the /mnt  from Server B ( the other linux server ) and be able to read / write.
How can i do this ? Export the /mnt ? Any idea or examples would be appreciated.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Peter HutchisonSenior Network Systems SpecialistCommented:
You need to set up the smb client on Linux and mount the share to a mount point in /mnt

1. Install smbclient (if not already done):
 sudo apt-get smbclient smbfs

2. Test access to server A
smbclient –L servera –U userid

3. Create a mount point folder
mkdir /mnt/sharename

4. Now mount the share to new mount point
mount –t cifs –o username=user,password=thepass //servera/sharename  /mnt/sharename
You could use NFS to export the /mnt on the linux server that mounted the folder from windows server, and on the other linux server you can use nfs to mount the exported folder.


server A mount the windows folder using samba client to /mnt
server A then exports the /mnt folder
server B (the 2nd linux server) uses NFS to mount the exported folder from server A.

What is your linux servers' platform?

below link might help you with commands / steps for NFS

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
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
Linux Networking

From novice to tech pro — start learning today.