I created folder /home/john/Desktop/test.
I want to give it access to user john itself and to user mike.
I created group:
sudo groupadd jm
And added users to same group:
sudo usermod -a -G jm john
sudo usermod -a -G jm mike
Then gave right:
sudo chgrp -R jm /home/john/Desktop/test
sudo chmod -R 770 /home/john/Desktop/test
When I login with mike and write cd /home/john/Desktop/test ,
it writes Permission denied.
What may be the problem?
Output of ls -la:
drwxrwx---+ 2 john jm 4096 Nov 7 15:35 test