Categories
Linux

Red Hat & CentOS – Limit FTP users to their /home/user directory

Limit FTP users to their /home/user directory. Open vsftpd configuration file — /etc/vsftpd/vsftpd.conf. # vi /etc/vsftpd/vsftpd.conf Make sure following line exists (and uncommented): chroot_local_user=YES Save and close the file. Restart vsftpd. # service vsftpd restart

Categories
Linux UNIX

Red Hat & CentOS – Setting Up Virtual Hosts

For this quick and simple example, I will enable Virtual Hosts and configure itsmetommy.com to point at /var/www/itsmetommy.com/public_html/. # vi /etc/httpd/conf/httpd.conf # mkdir /var/www/itsmetommy.com # mkdir /var/www/itsmetommy.com/public_html/ Add the below line to /private/etc/apache2/extra/httpd-vhosts.conf or you will get the below error when restarting httpd. ServerName localhost “Starting httpd: httpd: apr_sockaddr_info_get() failed for YOURHOSTNAMEhttpd: Could not reliably determine the […]