Matthew Tandy
asked on
Locking certain directories
I am running a website, where i would like to give people FTP access, when the user ftps in they start in
/home/%username%
if they wander to /var/www/html they can access all the html thats stored on the site. I dont want them to be able to access these folders, is there anything i can do??
/home/%username%
if they wander to /var/www/html they can access all the html thats stored on the site. I dont want them to be able to access these folders, is there anything i can do??
Just use an ftp server that makes all this right away for you : vsftpd.
http://vsftpd.beasts.org/
You can find RPMs for most distros.
http://vsftpd.beasts.org/
You can find RPMs for most distros.
ASKER
Im sure ive done it before with just chmod though, however this time if i chmod the html folder or any others below to 700 it wont let the site work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Got it working now, i made the group apache have access, and the user who is the web master, then chmoded it 750
Thanks
Thanks
Here are some examples:
http://www.kegel.com/crosstool/current/doc/chroot-login-howto.html
http://www.geniusweb.com/LDP/HOWTO/Chroot-BIND8-HOWTO.html