I have a need to create SSH accounts on my self managed hosted CentOS VPS. I want them to only have access to their own home directory. I would like to avoid a CHRoot Jail to keep things simple. I am hoping to achieve this with linux file permissions.
What I have done so far:
Sorry cant post images as I am new and have no reputation
Forbidden
You don't have permission to access /index.htm on this server.
Apache/2.2.15 (CentOS) mod_fcgid/2.3.7 PHP/5.3.3 mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_perl/2.0.4 Perl/v5.10.1 Server at www.ponmanconstructions.com Port 80
Any idea why this could be happening?
An ls -l on the folder in with the working configuration
drwxrwxr-x 6 apache root 4096 Jul 22 07:28 mysite.com
An ls -l on the folder in the required configuration (This config causes the Forbidden error)
drwxrwx--- 6 apache root 4096 Jul 22 07:28 mysite.com
apache user belongs to apache group too so if you don't give read & execute permission to that group so it becomes others ie why you get forbidden error.
Thanks & Regards,
Alok Thaker
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.