How to create 2 users a and b from shell, that will be able to read files of each other( say a can read the files of b, and b can read the files of a) .
sudo adduser newuser sudo passwd newuser
The classic way to do this is to make sure that both users belong to the same group. Then, you change the ownership of their files to that group. So, for example, to create
That's it. Now, any files created by
In a terminal (xterm is OK) execute
Create the two users with the command you've written, then go to the directory with your files and execute
Please feel free to comment under here if you have more questions and don't forget to press the left UP arrow if I'm of any help.