Hi.<br>
<br>
I'm not sure why you're going through all this trouble to share files.<br>
<br>
Red Hat uses a user/group scheme called "user private groups".
With this scheme, every user gets his own group (usually of the same
name and ID as the user).<br>
<br>
If you want to have several users share data in a common directory, the admin can set this up using the setgid bit.<br>
<br>
Example scenario:<br>
<br>
Three users (tom, dick, harry) all members of the accounting group need
to be able to share files with each other, on a Red Hat / Fedora system.<br>
<br>
Step 1: As root, create the group and common directory and change the permissions and group ownership.<br>
# groupadd accounting<br>
# mkdir /data/accounting<br>
# chgrp accounting /data/accounting<br>
# chmod 2770 /data/accounting<br>
<br>
Step 2: Create the users and add the accounting group to their group set<br>
# useradd -G accounting tom<br>
# useradd -G accounting dick<br>
# useradd -G accounting harry<br>
<br>
Any files created in /data/accounting by these three users will
automatically have group ownership of "accounting" (that's what the
setgid bit does). Anywhere outside this dir, and everything is
back to normal (ie. files get user and private group ownership).
Distributions that use user private group schemes usually set their
umask (default file permissions) to 002, which makes your default file
permissions rw-rw-r-- and directories rwxrwxr-x. So any files
created in the shared directory can be modified by users in the group.<br>
<br>
pm<br>
<br>-- <br>Paul Mora<br>email: <a href="mailto:paulmora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">paulmora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a><br>
<br>