Skip to main content

Posts

How to kill the tty sessions in unix

How to kill the tty sessions in UNIX 1. First you have to check how many logins are present in server.  Use "w" command to list all the sessions . [root@testserver ~]# w  00:22:13 up 106 days, 22:41,  2 users ,  load average: 3.31, 1.53, 1.09 USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT root     pts/15   master.world.com 00:22    1.00s  0.64s  0.61s w root     pts/18    10.47.18.111      09Mar14  36days  0.01s  0.01s -bash Total 2 users are logged in. See there is a session from the IP 10.47.18.111 is idle for last 36 days.  And I want to end this session.  For that we have to note down the tty id which is used for this Login. See here it is  pts/18 .  2....

Zimbra Heartbleed Vulnerability OpenSSL Patch.

Zimbra Collaboration Server 8 is susceptible to the OpenSSL Heartbleed bug:   Specifically, nginx, postfix and OpenLDAP all link directly to OpenSSL shipped in ZCS8. Other components in the ZCS package also link to the openssl libraries, but the above three are the potentially Internet-facing services that would be attackable. All versions of ZCS8 as released today are vulnerable. ZCS7 is not vulnerable because it uses OpenSSL 1.0.0, which is not vulnerable. Only OpenSSL 1.0.1 and later are reported as being vulnerable. Zimbra has produced an OpenSSL patch for versions 8.0.3 to 8.0.7. If you are running a version prior to 8.0.3, your server is susceptible to other critical security vulnerabilities [reference: https://www.zimbra.com/forums/announ...-84547-a.html] , so you would please need to upgrade to a secure version first, then run this patch. The patch is located here: http://files.zimbra.com/downloads/se...ssl-updater.sh The patch downloads the correct ...

exited due to signal 25 (squid Error)

[SOLVED] Hi Guys , Some times back I have faced some problem in one my squid proxy server. My squid service was killed and was failed to start the service.  # service squid start Starting squid: ....................                       [FAILED] There was no visible error on that screen. It simply returned the status is failed. Then I check the log file of system. There was an error " exited due to signal 25 ". Jul 27 12:48:46 PRXY squid[14372]: Squid Parent: child process 14375 started Jul 27 12:48:46 PRXY squid[14372]: Squid Parent: child process 14375 exited due to signal 25 Jul 27 12:48:49 PRXY squid[14372]: Squid Parent: child process 14381 started Jul 27 12:48:50 PRXY squid[14372]: Squid Parent: child process 14381 exited due to signal 25 Jul 27 12:48:53 PRXY squid[14372]: Squid Parent: child process 14387 started Jul 27 12:48:53 PRXY squid[143...

clearing cache on squid proxy

  stop squid, and erase all the files from your cache directory  For example: squid -k shutdown or /etc/init.d/squid  stop Find-out which is you squid cache Directory using following command # more /etc/squid/squid.conf | grep ^cache_dir cache_dir ufs /var/spool/squid 5120 16 256   Here it is showing /var/spool/squid. Then remove cache files ( Take a backup before deleting if required)  rm -fr  /var/spool/squid/*   then re-create the swap directory structure: squid -z  now start squid again. /etc/init.d/squid  start

Linux System Monitoring Tools.

Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as: Finding out bottlenecks. Disk (storage) bottlenecks. CPU and memory bottlenecks. Network bottlenecks. #1: top - Process Activity Command The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds. Commonly Used Hot Keys The top command provides several useful hot keys: Hot Key Usage t Displays summary information off and on. m Displays memory i...

How do I see all running process in Linux?

You need to use the ps command. It provide information about the currently running processes, including their process identification numbers (PIDs). Both Linux and UNIX support ps command to display information about all running process. ps command gives a snapshot of the current processes. If you want a repetitive update of this status, use top command.     ps command Type the following ps command to display all running process:    # ps aux | less Where, -A: select all processes a: select all processes on a terminal, including those of other users x: select processes without controlling ttys See every process on the system # ps -A # ps -e See every process except those running as root # ps -U root -u root -N See process run by user vishnu   # ps -u vishnu top command The top program provides a dynamic real-time view of a running system. Type the top at command prompt: # top Output: top command : Displays Linux Tasks To quit p...

SSH login without password.

Login as “ root ” on “ spicykerala.co.in ” and generate a pair of authentication keys. Note: even if is unsecured to work without password, do not enter it. Let it empty... [root@spicykerala]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: b4:35:f8:0e:44:ba:b1:85:ea:17:d3:41:da:8b:58:ed root@spicykerala.co.in The key's randomart image is: +--[ RSA 2048]----+ | o                          | | O .                        | | * O o              ...