Entries by admin

PwnKit Local Privilege Escalation Vulnerability polkit’s pkexec (CVE-2021-4034)

A memory corruption vulnerability (CVE-2021-4034) in PolKit, a component used in major Linux distributions and some Unix-like operating systems, can be easily exploited by local unprivileged users to gain full root privileges. PolKit vulnerability can give attackers root on many Linux distros (CVE-2021-4034) https://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034 Patch for Ubuntu is Available https://ubuntu.com/security/notices/USN-5252-1 If you don’t have any […]

Cloudlinux Setting Global Php Directives

When you want to apply one or more php directives like disable_functions,datetime.zone or something else to all your customers websites,you should write these to /etc/cl.selector/global_php.ini file.After you write your directives enter this command to apply selectorctl –apply-global-php-ini /usr/sbin/cagefsctl –setup-cl-selector You can see the example below. ; This file provides global settings for php.ini of all […]

Extending / resizing lvm disk to free space

When you use lvm and still have free space on a virtual or physical disk,you can extend your lvm partition to use all free space. Firstly you should be sure it exists. Type “vgdisplay” command in root shell.You should see some free space in “Free  PE Size” After that you should type this command “lvextend […]

Install and activate quota on Linux

Install the quota tools on your server.(debian – ubuntu) sudo apt install quota Edit your fstab file under etc folder: /dev/sda1 / ext4 usrquota,grpquota 0 0 and remount it to take effect immediately: sudo mount -o remount / (or whereever you want to enable) Enable quota.This command will create two files on file system like […]

Mount remote ftp to your server

If you use debian or ubuntu,you should install the package first. apt-get install curlftpfs After the installation,create a folder where will you mount to.for example /mnt/rftp sudo mkdir /mnt/rftp curlftp’s format and its parameters are simple.for example,we have an ftp account like olriss and password: 123x4P at 192.168.1.199 in local server,mount remote ftp with using […]

Extending lvm disk by adding space

On Vmware Esx server,You can increase size of your virtual hard disk easily.If you use lvm for your guest os,you will need to add new virtual hard disk or just increase the size of your current disk.This guide will help you to extend size of the disk after you resize of your virtual disk by […]