Share directory

Hello,
How can i share file system between to linux box (permanent).
LVL 1
Aida2Asked:
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.

ravenplCommented:
You mean share between multiple machine (linux/other OS boxes)?
Yes use NFS to export the filesystem branch to network.
Yes use samba(windows share) to export the filesystem branch to network.
0
Aida2Author Commented:
No i mean share between to linux box exactly i looking for export command (maybe in one write a permition and name for another machine in /etc/exports and from another box just mount it) or something like that
0
ravenplCommented:
Install nfs-server on the box where the directrory exists permanently, then export with /etc/exports and start nfs-server
on the other box: mount -t nfs 1.2.3.4:/remote/path /local/path
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

JammyPakCommented:
so you want NFS...
/etc/exports would be something like this:

/apps 192.168.6.0/24(ro) 192.168.5.10(rw)

this means that anyone in the 192.168.5.* network can mount it read-only, and there is read-write access just to 192.168.5.10 (you can use hostnames too)

If you operate as root, you may want to use the no_root_squash option as well, since this means that you can mount it as root and still act as root on the nfs server

don't put a space between the host/network in the permissions (ro) or (rw) or else you'll negate the permissions

you can then mount if from the other PC with the command:
mount -t nfs <nfs server>:/apps /mnt/apps

this will mount 'apps' from the machine 'nfs server' as '/mnt/apps' on the local system. You can make it permanent by modifying /etc/fstab

HTH
0

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
Aida2Author Commented:
Thank you jammy i was look for this
i my nfs server i have
/apps     *(rw,mp,async,no_root_squash)
in my /etc/exports

And from another box i try:

mount -t nfs new:/apps /mnt/apps
i get :
mount: new:/apps failed, reason given by server: permission denied

but apps have 777
0
Aida2Author Commented:
nfsstat for both server are
calls    badcalls    badauth     badclnt   xdrcall
0            0              0               0          0

HELP
0
Aida2Author Commented:
Sorry i forgat to restar service ntfs. now is ok thank you.
0
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

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.