The easiest way of setting up file sharing between Linux boxes is to use NFS. See link for a how to on editing/creating your /etc/exports file and creating mount points.
On the server or sharing computer--
1) Configure the files or directories you want to export this is done in the
/etc/exports file. The file contents indicate the dir/files to share.
DIR HOST(options) # Comments
/home laptop(rw) # share with laptop
/home 10.0.0.11(rw) # share with ip address
/home 192.168.1.0/220.127.116.11 # share with network
/home domain.my.domain # share with domain
2) Turn on NFS:
To enable it on next boot use: # chkconfig nfs on
enables file locking # chkconfig nfslock on
To enable it without boot use:
# /etc/init.d/nfs start
# /etc/init.d/nfslock start
3) Edit the /etc/hosts file to list all hosts on the domain to be able th share
4) export the newly created share by issuing
# /usr/sbin/exportfs -a -v
On the clients or computers to be shared with--
5) Create a mount point for the share this can be done anywhere. Use /mnt.
Create a new directory in /mnt ( # mkdir /mnt/server )
6) Test the mount point by mounting the new share.
mount server:/home /mnt/server
Or with options:
mount -o rw,bg,intr,soft server:/home /mnt/server
To mount the export automatically in NFS:
7) Edit the /etc/fstab file.
host:directory mountpoint nfs options 0 0
server:/home /mnt/server nfs rw,bg,intr,soft 0 0
***Always remember the last two zeros this tells linux not to dump the contents
of the file system and not to run fsck on it.
These may help too:
To share files between Linux and Winblows you have to use SAMBA.
SAMBA file server: www.samba.org
-To see if Samba is installed: # rpm -qa | grep samba
-You should see 4 packages as noted below (version #s may vary)
Samba rpms are located on disk 2 and 3. To install use:
# mount /mnt/cdrom
# cd /mnt/cdrom/Redhat/RPMS
# rpm -Uhv samba*
# cd ; umount /mnt/cdrom
repeat for each disk....
1) Edit the smb.conf file
2) Add samba users
3) Start samba service
This may help too: