Chroot VSFTPD user on a webserver and change port of VSFTPD

First of all make sure to change the name of your VSFTP configuration file: sudo mv /etc/vsftpd.conf /etc/vsftpd.conf_orig sudo nano /etc/vsftpd.conf Now paste below code in vsftpd.conf file: listen_port=4021 listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES connect_from_port_20=NO chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO pasv_enable=Yes pasv_min_port=10000 pasv_max_port=10100 allow_writeable_chroot=YES Restart VSFTPD service and it … Read more Chroot VSFTPD user on a webserver and change port of VSFTPD

Password protect directories / folders with nginx

Overview On an Apache server, it’s possible to password protect a directory using .htaccess and .htpasswd files. However, .htaccess files are not supported on Nginx. You can still password protect your directories, but you need to use a basic_auth.conf file instead. Creating the file Log into your server via SSH. Navigate to your user’s directory. … Read more Password protect directories / folders with nginx

Howto remove remembered skype username

Its quite annoying if someone else visited you and used your skype to login on his/her account. That account appears all the time the next time you start skype. If you whish to remove remembered skype username from login screen than open up explorer and navigate to: C:/Users/YourWindowsUsername/AppData/Roaming/Skype Change slash to backslash in code above! … Read more Howto remove remembered skype username

How to remove all of the mails for a user account on your system

Have you ever tried to type “mail” at comment prompt? Command line tool mail uses for reading system mail messages on your system. However if your system is running as a webserver than user account www-data probably has got many messages. If you want to remove all of the mails for user www-data just go … Read more How to remove all of the mails for a user account on your system

OpenCart: How to move search field to top menu (content_top.tpl)

Please read this article to learn how to easy move search field to another part of your page. In my case I will move it to my custom menu. First you need to copy the code for the search form from: /catalog/view/theme/-yourtheme-/template/common/header.tpl Code: <div id=”search”> <div class=”button-search”></div> <?php if ($filter_name) { ?> <input type=”text” name=”filter_name” … Read more OpenCart: How to move search field to top menu (content_top.tpl)

How to disable dashboard on your Mac and Why

As you know your dashboard is started at system startup which means it consumes extra power of your macbook. If you don’t use dashboard like me you better disable it. Your battery will last longer and you’ll save some memory resources. To disable dashboard fire up your terminal and type this: defaults write com.apple.dashboard mcx-disabled … Read more How to disable dashboard on your Mac and Why