Hello and welcome bzzzzzdroid.

The file access control enforces who can access which archives. Take a look at <https://en.wikipedia.org/wiki/File_system_permissions>. To share files, what you need to do is to make sure that the users corresponding to your other family members have permission access the files you intend to share. There are several ways to do this. Here's an example:

==Instructions to use a directory for shared files==.
Execute the following commands as root. Lines that begin with “#” need not be typed in the console. They're only to expalin the commands.

# Create shared directory and a group to be the owner for it:
useradd shared
mkdir /home/shared
chown shared:shared /home/shared
chmod 2770 /home/shared

# Now add all your family member users' to the group “shared”. “FAMILY_MEMBER” is a variable. You should type do the following command for all your family members, with their actual user names in place of “FAMILY_MEMBER”.
adduser FAMILY_MEMBER shared

That's all, you can now use that directory to share files. Files created there will belong to the group “shared” by default, but files moved from elsewhere will keep their permissions by default, so you must change them manually. You can use the following command to set the group appropriately for all the files under “shared” (Recursively, so that sub-directories are scanned as well):

chgrp -R shared /home/shared

Note that in BASH you can type “~shared” as a shorthand for “/home/shared” since “~USERNAME” expands to the home directory of that user (Which may not be under /home). Placing home directories under “/home” is just a convention that you can chose to not to follow.

If you need more sophisticated solutions, read about UNIX file permissions, or tell us what you need and somebody may be able to help (It's easy to do, it just takes time to explain it).

Reply via email to