sudo: parse error in /etc/sudoers near line -1

Lanciando il seguente comando dall’utente xxxx

xxxx >sudo su – root -c SALVA_TUTTO_FABIO

Compare l’errore :

sudo: parse error in /etc/sudoers near line -1

Problema nella configurazione di sudo, nel file /etc/sudoers non erano impostati le configurazioni per l’utente xxxx

# User privilege specification
root ALL=(ALL) ALL
xxxx ALL= NOPASSWD: /usr/bin/su

sudo: parse error in /etc/sudoers near line -1

Uso del netstat per vedere i processi in ascolto (Tratto da Redhat)

Using netstat to see the listening processes

To see if a program or process is listening on a port, ready to accept a packet, use the netstat program.

netstat -tulnp

The arguments to the netstat program are listed below:

•t – Show TCP

•u – Show UDP

•l – Show only listening processes (netstat can show both listening and all established connections, i.e. as a client too)

•n – Do not resolve network IP address names or port numbers

•p – Show the process name that is listening on the port

Uso del netstat per vedere i processi in ascolto (Tratto da Redhat)

Resize swap redhat

Disable swapping for the associated logical volume:

# swapoff -v /dev/VolGroup00/LogVol01
Resize the LVM2 logical volume by 256 MB:

# lvm lvresize /dev/VolGroup00/LogVol01 -L +256M
Format the new swap space:

# mkswap /dev/VolGroup00/LogVol01
Enable the extended logical volume:

# swapon -va
Test that the logical volume has been extended properly:

# cat /proc/swaps # free

Resize swap redhat