Archivo de la categoría: Nix

Apache SElinux

ls -tls -Z Text Syntax Virtual Host Options: httpd -t httpd -S httpd: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.5 for ServerNameVirtualHost configuration:wildcard NameVirtualHosts and _default_ servers:_default_:443          192.168.1.5 (/etc/httpd/conf.d/ssl.conf:81)Syntax OK Configure SElinux Contexts : Use same context as /var/www/html sudo chcon -R –reference=/var/www/html/ public_html/

Rezise LVM 2 Root Centos 5.1

Primero bootear en el cd de rescate: 1) boot: Linux Rescue 2) Omitir montar partición //cargar los volumentes lógicos # lvm vgchange -a y //Comprobar el disco duro# e2fsck -f /dev/VolGroup00/LogVol00 //Reducir el tamaño# resize2fs -f /dev/VolGroup00/LogVol00 10G //Reducir el tamaño lógico# lvm lvreduce -L10G /dev/VolGroup00/LogVol00 Crear la partición home# lvcreate -L50G -nhome /dev/VolGroup00 Formatearlamkfs… Leer más »

Usint Bash History

$ echo $HISTFILE $HISTSIZE $HISTFILESIZE/home/user/.bash_history 1000 1000 List previous number of history commands$ history 5 1033  sudo yum update 1034  echo $HISTFILE $HISTSIZE $HISTFILESIZE 1035  history 1036  echo $HISTFILE $HISTSIZE $HISTFILESIZE 1037  history 5 Ctrl + r to search a string history

Yum Command Finding Packages

$yum list available $yum list installed $yum list extras $yum list *vorbis* $yum list updates $yum info wordpress $yum info word* $yum search mp3 $yum whatprovides ogg123 $ yum grouplist

Finding Commands

Command and Sample Output  ::  Description Show the first mount command in PATH:$ type mountmount is /bin/mount Show binary source, and man pages for mount:$ whereis mountmount: /bin/mount /sbin/mount.cifs /sbin/mount.nfs /sbin/mount.nfs4 /usr/share/man/man2/mount.2.gz /usr/share/man/man8/mount.8.gz Find bash.ps anywhere in the file system$ locate bash.ps/usr/share/doc/bash-3.1/bash.ps/usr/share/doc/bash-3.1/rbash.ps Find the umount command anywhere in your PATH or aliases$ which umount/bin/umount Find… Leer más »

introduction to yum

Introduction To update the system applying the most recent corrective patches of security and to the operating system is not as difficult as many do not suppose, nor either must be a hell of dependencies between packages RPM as some others argue. The reality of the things is that it is much very simple and… Leer más »

RootKits

locally checks for signs of a rootkit:CHKROOTKIThttp://www.chkrootkit.org/download/ 5. Installation ————— To compile the C programs type:  # make sense  After that it is ready to use and you can simply type:  # ./chkrootkit