Sections

Find a process blocking a file with fuser: fuser -m </dir or /files> # Find process blocking/using this directory or files. fuser -cu </dir or /files> # Same as above but add the user fuser -kcu </dir or /files> # Kill process fuser -v -k -HUP -i ./ # Send HUP signal to process # Output will send you <PID + letter>,...

Server Side First Install samba and samba-client (for debug + test) /etc/samba/smb.conf [home] Workgroup=WORKGROUP (le grp par defaul sur windows) Hosts allow = ... [shared] browseable = yes path = /shared valid users = user01, @un_group_au_choix writable = yes passdb backend = tdbsam #passwords are stored in the...

SSHFS SshFS sert à monter sur son FS, un autre système de fichier distant, à travers une connexion SSH, le tout avec des droits utilisateur. L’avantage est de manipuler les données distantes avec n’importe quel gestionnaire de fichier (Nautilus, Konqueror, ROX, ou même la ligne de commande). - Pre-requis : droits...

This was available on RHEL 6/7 Checking status of the cluster: clustat clustat -m # Display status of and exit clustat -s # Display status of and exit clustat -l # Use long format for services cman_tool status # how local record of cluster status cman_tool nodes # how local record of cluster nodes cman_tool nodes -af...

The Boot - starting process - BIOS est lancé automatiquement et détecte les périphs. - Charge la routine de démarrage depuis le MBR (Master Boot Record) - C'est le disk de boot et se trouve sur le premier secteur du disque dur. - Le MBR contient un loader qui charge le "second stage loader" c'est le "boot loader" qui...

Most usefull shortcut Ctrl + r : Search and reverse. (ctrl+r pour remonter l’history). Ctrl + l : Clear the screen (instead to use “clear” command). Ctrl + p : Repeat last command. Ctrl + x + Ctrl + e : Edit the current command on an external editor. (Need to define export EDITOR=vim ). Ctrl + shift + v : Copy / paste...

Trust a CA on Linux host # [RHEL] RootCA from DC need to be installed on host: cp my-domain-issuing.crt /etc/pki/ca-trust/source/anchors/my_domain_issuing.crt cp my-domain-rootca.crt /etc/pki/ca-trust/source/anchors/my_domain_rootca.crt update-ca-trust extract # [Ubuntu] sudo apt-get install -y ca-certificates sudo cp...

Server Idm - Identity Manager prerequisites : repository configured NTP synchronize check config DHCP/DNS hostname -f == hostname acces to webui IDM : https://idm01.idm.ad-support.local/ipa/ui/ yum install -y ipa-server ipa-server-dns ipa-server-install \ --domain=example.com \ --realm=EXAMPLE.COM \...