Your descriptions sounds a bit strange "put all 5 comps on share". I'm just suggesting using an nfs share and mounting it on the /home directory of each computer. From the users standpoint, there is a /home directory that contains their home directory.
On the server you would configure nfs with the /etc/exports file. Here is a part of mine from my desktop:
Code:
/home/jschiwal/podcasts 192.168.1.0/255.255.255.0(fsid=0,rw,root_squash,sync,no_subtree_check)
/home/jschiwal/music 192.168.1.0/255.255.255.0(rw,root_squash,sync,no_subtree_check)
/home/jschiwal/Documents 192.168.1.0/255.255.255.0(rw,root_squash,sync,no_subtree_check)
Here is the corresponding /etc/fstab entries on my laptop:
Code:
hpmedia:/home/jschiwal/podcasts /mnt/hpmedia/podcasts nfs defaults,user,_netdev 0 0
hpmedia:/home/jschiwal/music /mnt/hpmedia/music nfs defaults,user,_netdev 0 0
hpmedia:/home/jschiwal/Documents /mnt/hpmedia/Documents nfs defaults,user,_netdev 0 0
Instead you would have something like this on the server:
Code:
/srv/nfs/home 192.168.1.0/255.255.255.0(fsid=0,root_squash,sync,no_subtree_check)
/srv/nfs/common 192.168.1.1/255.255.255.0(root_squash,sync,no_subtree_check)
And one the users' clients you would have an entry in /etc/fstab like this:
Code:
servername:/srv/nfs/home /home nfs defaults,_netdev 0 0
servername:/srv/nfs/common /home/common nfs defaults,_netdev 0 0
There are other mount & export options you may want. See the manpages for mount, nfs, mount.nfs.
You would then merge the user entries in /etc/password and /etc/shadow, making sure that each user has a unique UID. Then copy the new passwd and shadow file to each computer. The net effect is as if each computer had a number of users.
(note: the second share, I added as an example of a shared directory everyone can access to save or load files. It would have root ownership and "ugo=rwxt" permissions)
---
Another thing to consider is to have each host run an nfs server and export the users own home directory. Then the /etc/fstab file would have entries like:
johnscomputer:/home/johnb /home/johnb nfs defaults,_netdev 0 0
jillscomputer:/home/jills /home/jills nfs defaults,_netdev 0 0
Again, you would need to have entries for each user in /etc/passwd, /etc/shadow and this time /etc/fstab as well.
This way you don't need a central fileserver (NAS).
The first method has an advantage of being able to backup everyone's home directories from one location.
----
One thing I haven't given enough though to is preventing users from modifying /etc/passwd (if they have root access or a live distro) so that they an access someone elses files. But the same thing would be true of someone in a windows network with network admin rights logging in. They could open any directory. NFS v4 has more security options using gssd. I don't have experience with it however. I run nfs v3.
----
You can get fancy and run an NIS server for authentication. The /etc/exports file can contain netgroups instead of hostnames or ip addresses.