Recently I had a project which was about ssh connection with an Amazon EC2 server. In this project I was asked to create a user than can have read permissions -only- to the whole server (all files in it). I searched how to do that and the majority of the answers was with the command
They mentioned that this command changes the owner of the files and I didn't want to do that, so what I did (I am new to Linux, I don't know a lot of things) was to add the read permissions to the root file with the command
chmod 755 /
After that I could not connect to the server anymore, so I guess it was a bad move. My question is if there was a way that I could do that without touching the root file and without changing the ownership of the files. Also I would like to ask if the
root file should not be touched in general, whatever the task is.