LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   access limiting on web server (https://www.linuxquestions.org/questions/%2Absd-17/access-limiting-on-web-server-766123/)

alex2323 11-02-2009 12:03 AM

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.

chiragrk 11-02-2009 03:43 AM

You need to enable CHROOT in vsftpd.

Add the following line in vsftpd.conf and restart the vsftpd daemon

chroot_local_user=YES

alex2323 11-02-2009 11:13 PM

What about ssh?

anomie 11-03-2009 11:50 AM

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
And then:
Code:

# /etc/rc.d/sysctl reload


All times are GMT -5. The time now is 12:39 AM.