TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Shared directories (solution)
OK, problem fixed. Here's a summary for those of you who are interested.
To create a directory for a group of users to share for purposes of
collaborating and exchanging files easily, do the following:
As root:
# groupadd foo
# mkdir /home/foo
Next step, edit /etc/group and insert a comma-delimited list of users to
add to the group you've just created.
Example snippet from /etc/group (group number may vary):
foo::510:user1,user2,user3
Now, create the permissions.
# chown root.foo /home/foo
# chmod 770 /home/foo
# chmod g+s /home/foo
Now, for convenience you can add a symlink to the shared directory in your
personal directory.
As you (not root) type:
# ln -s /home/foo foo
Log out and back in, and you should be set.
Thanks for all the help. This will be nice for the teachers.
-Tim
--
Timothy Wilson | "The faster you | Check out:
Henry Sibley H.S. | go, the shorter | http://slashdot.org/
W. St. Paul, MN, USA | you are." | http://linux.com/
wilson@chem.umn.edu | -Einstein | http://www.mn-linux.org/