What you need to do is ensure that both users are in the same group that you will share under, then you need to have the directory available for write permissions.
Here is a simple example:
Code:
# ls -d ~user1
drwxr-x--- 6 user1 users 8192 Aug 14 21:00 /home/user1
# ls -ld ~user2
drwxr-xr-x 6 user2 users 4096 Aug 14 21:00 /home/user2
This shows us both user1 and user2 are in the default group "users".
Code:
# mkdir /home/user-share
# chown root:users /home/user-share
# chmod 770 /home/user-share
Now the directory has been made both users can access and write files into that directory. They of course need to make sure that the files they make have the permissions to allow other users to then edit them.
Here is an example showing how to make a group for the users:
Code:
# groupadd users
# gpasswd -a user1 users
# gpasswd -a user2 users
This makes a new group called "users" and adds both user1 and user2 to the group. Again you can make the new share directory and continue from there.
A user should always make sure that they make files with valid permissions for other users .. for instance:
Code:
# cd /home/usershare
# touch file
# ls -l file
-rw------- 1 user1 user1 0 Aug 14 21:30 file
You can see the default file made by this user doesn't give the permissions needed. Therefore:
Code:
# chgrp users file
# chmod 660 file
That would give the permissions needed. Unfortunately its a tough job managing permissions but hopefully you will grow to get used to it.
Thanks and good luck! :)