share directory from linux to unix

hello,:b:
I want to share a directory from Linux server to Unix server, i did it before for Unix servers only ,
first server:
share -F nfs /backup

second server:
mount -F nfs 192.1.1.208:/backup /

but i can't find share command in linux, we tried to use samba but it doesn't works.

any one knows how to do it.

It is exportfs in debian, and not "share".

exportfs IP:Dir_Of_FileSystem_To_Export

exportfs 192.168.1.1:/mnt

Which linux distribution you are speaking about ?!

In Linux there isn't a 'share' command. Instead, edit the /etc/exports file per your requirements, and then reload the NFS server, eg

/etc/init.d/nfsserver reload

we are using ubuntu distribution, and it doesn't have exportfs command ..

In ubuntu, the procedure is.

  1. Install nfs-kernel-server as
sudo apt-get install nfs-kernel-server
  1. Edit /etc/exports
    ( check the examples there & do like that. )

  2. Restart the nfs-kernel-server as

/etc/init.d/nfs-kernel-server restart

Not tested, but would work. Let us know.

sorry for late , i was busy ..it works now thanks... this what i have done..

=== in linux ( 192.1.1.208)

 sudo apt-get install nfs-kernel-server
 sudo chmod 777 /backup 
 sudo exportfs 10.2.128.18:/backup/

we removed the read only option from Webmin nfs export module, and we found that the /etc/exports edited by this line.

/export/backup  (rw)

=== in Unix (10.2.128.18)

mount -F nfs -o vers=3 192.1.1.208:/backup /NWBackup

hope it helps....

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums