A user has a userId (UID) and a groupId (GID) for instance a user called auser could belong to a group called adept.
In this example in /home/auser files we want all files/directories to belong to the owner auser and the group adept.
adept, the group, will have their gid declared in it's entry in /etc/group say 501.
auser, the owner, will have their uid declared in their entry in /etc/passwd say also 501 ( they don't need to be the same value) and also the GID that the owner belongs to.
Once these files have been set up correctly you can use -
chown -R auser /home/auser
chgrp -R adept /home/auser
You will nee to consult your preferred help system for the structure of the files and the commands.
The above may not solve your problem but it is a start.
|