I am trying to come up with a solution to prevent users from being able to read each other's access logs. I was alarmed by this possibility, recently, when logged into the system as a user.
First, I noticed if I cd ../../ back to the root and perform an ls command, I can see everything in the root folder. Second, if I cd var/log and do an ls command, I can see everything there.
What was disturbing is that I can actually do a nano on the yum.log and read that. But I can also cd into httpd and do a nano on the access_logs there! And then I can cd into domains and see all of the sites' access logs and read those as well!
Now, I notice that the home directory had a 711 permission on it, which does not allow anyone to list what is there. However, if you know how to drill down, without seeing the folders, you can eventually gain the ability to list contents and read log files!
So, I need some help to fix this issue in a logical way, preferably through Direct Admin. ...While this is not a major hole, I do see it as a hole in privacy!
Thanks for the help!
P.S. - Not granting SSH to users is not an option.
First, I noticed if I cd ../../ back to the root and perform an ls command, I can see everything in the root folder. Second, if I cd var/log and do an ls command, I can see everything there.
What was disturbing is that I can actually do a nano on the yum.log and read that. But I can also cd into httpd and do a nano on the access_logs there! And then I can cd into domains and see all of the sites' access logs and read those as well!
Now, I notice that the home directory had a 711 permission on it, which does not allow anyone to list what is there. However, if you know how to drill down, without seeing the folders, you can eventually gain the ability to list contents and read log files!
So, I need some help to fix this issue in a logical way, preferably through Direct Admin. ...While this is not a major hole, I do see it as a hole in privacy!
Thanks for the help!
P.S. - Not granting SSH to users is not an option.