As the main admin of a server, I want to make it so that users can't see each others home folders. (so I chmod 750 the home folder which includes me, so I can see mine but can't see other people's).
I realise I can 'su' to change in to the users if I need to see in their folders, but I am presuming that root would be able to move in to that folder and see the contents, but obviously I can't 'sudo cd' or 'sudo ls'.
So I was thinking of having all users in a 'user group' which I could be a member of. Or is this a terrible idea? Should I just 'su' or is there a way around this that I can't think of?
I did search for solutions but as you can imagine 99.9% of the solutions you find are not talking about this specific scenario, more permissions in general.
So to summarise: I want to be able to see what's in user's folders without having to 'su', but leave other users unable to see in each other's folders.