access limiting on web server
Hello, I'd like to bring up web hosting. Everything is clear for me, but I don't know how limit access. I installed vsftpd. And for clients I'll open ssh access. I don't know how to do that users can't see each other. Thanks.
|
You need to enable CHROOT in vsftpd.
Add the following line in vsftpd.conf and restart the vsftpd daemon chroot_local_user=YES |
What about ssh?
|
What version of FreeBSD? If 7.2-RELEASE or later, you have the ChrootDirectory directive available: sshd_config(5)
If an earlier FreeBSD version, you can run a more current sshd (with this feature) from ports: security/openssh-portable That will keep them in a particular directory. ------- To hide their processes from one another, (as root) run: Code:
# echo 'security.bsd.see_other_uids=0' >> /etc/sysctl.conf Code:
# /etc/rc.d/sysctl reload |
All times are GMT -5. The time now is 12:39 AM. |