Results 1 to 2 of 2
Thread: Securing sshd
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2006
I tried chowning the dirs to the relevant users and chmoding them to 0700. This works perfectly for ssh, but apache then gives the access forbidden message.
Anyone got any ideas as to how I can still give apache access to the files and still give the relevant owners access to their home dir, but without giving other ssh users access.
Any help would be appreciated.
Make sure that the apache user (apache, or httpd or whoever it is on your system) is listed in the /etc/group file as a member of each users groups, and make sure that different users are not listed in each others groups. Then you can restrict access for non-group members (i.e. exclude other users) but allow group access (including apache in this case) to read the files, e.g.
drwxr-x--- fred fred 4096 .... fred
fred:x:500:apacheLinux user #126863 - see http://linuxcounter.net/