A friend of mine hosts some of the websites he has built for his clients. Somehow he messed up the permissions giving all clients' websites a 403 error upon loading.
When I ssh to his server and log in with my account (I have 2 websites running on his server too), the first message I get is:
Last login: Tue Jan 24 11:54:37 2012 from 82.168.36.207 Could not chdir to home directory /home/michiel: Permission denied -bash: /home/michiel/.bash_profile: Permission denied
I then sudo and chdir to /home/. I (recursively) chowned the folder michiel to michiel:michiel and chmodded it (recursively) to 755.
I still get the same error at login and the website still gives me a 403 error.
I have tried to figure out if SELinux is causing problems, but "find selinux" outputs that there is no such file or folder.
Any ideas on how to solve this problem?
sestatus? Is de web-content in your home-folder? Is/var/www/myuser/or something alike mounted to your homedrive? Are there errors in/var/log/httpd/*? – Bart De Vos Jan 24 '12 at 11:56sestatusis normally on root's PATH, but not regular users', though it doesn't need privilege to run. Try/usr/sbin/sestatus. – MadHatter Jan 24 '12 at 12:22