Lab 9.1 - Seguridad de Permisos
Objetivos
- Auditar los permisos
- Corregir permisos peligrosos
- Asegurar SSH y cron
Ejercicio 1: Auditoría
# Trouver fichiers world-writable
find /home -type f -perm -o+w
# Trouver répertoires world-writable
find /home -type d -perm -o+w
# Permissions SSH
ls -la ~/.ssh
Ejercicio 2: Corrección
# Corriger SSH
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
Lab creado el: diciembre 2024 - Probado en Ubuntu 24.04