How to allow user A write to user B home directory

SaeedFZL

New member
Joined
Jun 21, 2018
Messages
3
Hello,
I searched for my problem but I'm not sure why I did not find what I tried to do.
Suppose users A and B.
Code:
groups a b
a: a b
b: b a
I did this also:
Code:
chmod 755 /home/user_a/ /home/user_b/
Now both users A and B can cat each other files and cd into each other's directory, also can run php /home/path/public_html/file.php.
Reading works fine, but these two users cannot write into each other's home directory and get permission denied.
I tried fixing it by changing permissions but it did not help me.

1- Is there any way so that user A can write into B's home directory and B into A's home directory?

I also want to do this:
Code:
cd /home/user_a/public_html/
ln -s /home/user_b/public_html/test/
So that user A can see test directory of B in his home directory.
In fact I want to share test directory so that both these two users can user can read/write.
2- How to do this?

What should I do for the above questions?
 
Back
Top