Mounting Samba shares persistently during reboot

To mount a samba share during each reboot we need to interact manually. This can be automated by putting the samba share entry in fstab which will automatically mount those shares by reading credentials files. Install with Samba client pacakge # sudo apt-get install smbfs fstab entry syntax //server/share /pathto/mountpoint cifs credentials=/home/username/.smbcredentials,uid=shareuser,gid=sharegroup 0 0 Edit ... Read More

Setting up SFTP with chroot

Instead of installing with VSFTPD package to configure the FTP service we can use the default SSH service and port 22 for secure file system protocol. This will secure the file transfer with added encrypted method which used in default SSH configuration. first, add a group # groupadd secure_ftp Add the user to newly created ... Read More

Allow nginx to upload more than 1 MB file

By default Nginx will allow uploading 1 MB file, By using below directive we can upload up to 10 MB If we need to upload larger than 10 MB just replace 10 with your specified size. client_body_in_file_only clean; client_body_buffer_size 32K; client_max_body_size 10M; Once above directive defined in virtual host restart the Nginx to take effect.