Get list of Linux users with shell access
To get list of Linux users with shell access (/bin/sh, /bin/bash) the following command can be used:
web development and system administration of Linux
To get list of Linux users with shell access (/bin/sh, /bin/bash) the following command can be used:
Because I have tired from annoying e-mail messages with subject alarm level changed which are killing me. I can`t find how to disable them in Plesk control panel. I have developed simple script to remove Plesk health monitor package for RPM-based Linux: RHEL, CentOS, Fedora etc.
If you see error messages below: Can’t connect to MySQL server on ‘Server IP’ (10061): ERROR 2003 (HY000): Can’t connect to MySQL server on ‘Server IP’ (110) Server did not respond within the specified timeout interval And checking port using telnet utility $ telnet ‘Server IP’ 3306 Gives error message: Trying ‘Server IP’… telnet: connect … Continue reading ERROR 2003 (HY000): Can’t connect to MySQL server on ‘server IP’ (10061)
To fix courier-imap connections limit errors like shown below: Thunderbird Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server. If so, use the Advanced IMAP Server Settings dialog to reduce the number of cached connections. Edit configuration file /etc/courier-imap/imapd parameters: MAXDAEMONS=40 MAXPERIP=4 Restart courier-imap service.
To get installed Drupal version from MySQL database use the following SQL query: select name,type,info from system where type = ‘module’ and name = ‘node’; Inside info you will see serialized data something like: s:7:”package”;s:4:”Core”;s:7:”version”;s:4:”7.22″ or s:7:”package”;s:15:”Core – required”;s:7:”version”;s:4:”6.28″
To protect your server with Plesk control panel from zero day exploit the following fail2ban configuration can be added: 1. Added custom config with the following regex: # more /etc/fail2ban/filter.d/apache-plesk-vulnerability.conf # Fail2Ban configuration file # # Author: Taras Shkodenko # # $Revision: 1 $ # [Definition] # Option: failregex # Notes.: regex to match the … Continue reading Use fail2ban to protect your server with plesk panel from zero day exploit
To find files and fix permissions example bash script below can be used: $ ./find_fix_permissions.sh $ It searches all files in folder SEARCH_FOLDER including sub-folders and if these files found correct permissions set in variable CORRECT_PERMISSIONS
To fix .htaccess error message: Invalid command ‘AuthUserFile’, perhaps misspelled or defined by a module not included in the server configuration add directive to main web server Apache configuration file /etc/httpd/conf/httpd.conf check web server Apache configuration: and reload web server using command:
Before making any configuration changes to any services remember to create backup. 1. To check named server Bind main configuration file /etc/named.conf syntax use command: # named-checkconf /etc/named.conf 2. To check zone file configuration use command: # named-checkzone shkodenko.com /var/named/run-root/var/shkodenko.com zone shkodenko.com/IN: loaded serial 201306071 OK # 3. To apply configuation files changes use command: … Continue reading Bind named check named.conf db zone file check
To install Drush for Drupal use commands: To view help: Drush options description also available at http://drush.ws/