Y por si fuera poco, tarde de grabación para el curso de Hardening GNU/Linux de #JuncoTIC! 🚀

Hoy, una intro a las listas de control de acceso, o ACL, para sortear algunas limitaciones de los permisos nativos de Unix/Linux 🛡️

Se vienen también actualizaciones en el curso de Admin Linux (LPIC)... ni bien tenga el contenido nuevo subido, sale anuncio educativo para que mis alumnos puedan verlo 😉

Estén atentos/as! 🔔

#gnu #linux #curso #juncotic #acl #chmod #hardening #ciberseguridad

¿Usás "chmod 777" en tu servidor?

Espero que no 😅

Si usás "chmod 777" sobre un directorio en GNU/Linux, estás dando permisos totales para que cualquier usuario del sistema (incluso los malintencionados) puedan acceder para lectura, escritura y ejecución a ese directorio.

¿Tenés dos minutos?

Acá te cuento más detalles 👇

https://youtube.com/shorts/51ceWPYNLKM?feature=share

#chmod #gnu #linux #hardening #permisos #777 #infosec #ciberseguridad #juncotic

¿Usás "chmod 777" en tu servidor? Espero que no 😅 #linux #ciberseguridad #chmod

YouTube

Learn how Linux file permissions work with this easy-to-follow cheat sheet. From numeric codes to symbolic changes, you'll master chmod in minutes. #linux #permission #chmod

http://tomsitcafe.com/2025/11/27/understanding-linux-permissions-the-chmod-cheat-sheet-youll-never-forget/

Understanding Linux Permissions: The “chmod” Cheat Sheet You’ll Never Forget

When you first see a file in Linux, the three-letter string that starts with -rw-r–r– can look like an alien language.It tells the system who can read, write, or execute that …

Tom's IT Cafe

@DecaTec

Hi. Ich bin zufällig über
#NextCloudBackupRestore (https://codeberg.org/DecaTec/Nextcloud-Backup-Restore) gestolpert und habe das gleich mal getestet (Bislang nur manuell und noch nicht per #Cronjob).

Super. Vielen Dank dafür.
👍

Ich hätte allerdings noch 2 Feature Requests für das
#Skript:

1. Rechteanpassung im Ziel:

#
# Check if backup dir already exists
#
if [ ! -d "${backupDir}" ]
then
mkdir -p "${backupDir}"
#chown -R "${user}" "${backupDir}"
#chmod 700 -R "${backupDir}"
else
errorecho "ERROR: The backup directory ${backupDir} already exists!"
exit 1
fi
Hier musste ich die chown und chmod Befehle auskommentieren, da das auf dem sftp-Share eine Fehlermeldung über fehlende Rechte erzeugt und dann das Skript abbricht. Ohne die Rechteanpassung läuft's durch.

2.
Nicht den gesamten
#Webserver für die ganze Laufzeit des #Backup stoppen, sondern nur den #vhost von #Nextcloud deaktivieren.

Hintergrund:
Ich (und wahrscheinlich auch andere) sichere auf ein eingebundenen
#sftp #Share zu einem anderen Server in einem anderen Rechenzentrum. Auch wenn die Anbindung zwischen diesen deutlich dicker ist als ein Heiminternetanschluss, dauert das bei meiner NC fast eine Stunde.

Da auf dem
#VPS (wie wahrscheinlich bei vielen) noch mehr #Webanwendungen laufen, ist alles nicht erreichbar, wenn der Webserver komplett gestoppt wird.

Ich kann das nur hart ins Backupskript coden. für mehr reichen meine Skriptfähigkeiten nicht:
Statt
#
# Stop web server
#
echo "$(date +"%H:%M:%S"): Stopping web server..."
systemctl stop "${webserverServiceName}"
echo "Done"
echo
sieht das bei mir nun so aus:echo "$(date +"%H:%M:%S"): Disabling Nextcloud vhost ..."
a2dissite nextcloud.conf
echo "Done"
echo
echo "$(date +"%H:%M:%S"): Reloading webserver ..."
systemctl restart "${webserverServiceName}"
echo "Done"
echo
und dementspechend am Ende des Skripts statt#
# Start web server
#
echo "$(date +"%H:%M:%S"): Starting web server..."
systemctl start "${webserverServiceName}"
echo "Done"
echo
dannecho "$(date +"%H:%M:%S"): Enabling Nextcloud vhost ..."
a2ensite nextcloud.conf
echo "Done"
echo
echo "$(date +"%H:%M:%S"): Restarting web server..."
systemctl restart "${webserverServiceName}"
echo "Done"
echo
Aber das mit einer Variable für den vhost abzubilden und diese in die beim setup.sh in NextcloudBackupRestore.conf zu schreiben, wäre natürlich besser und damit wieder universal nutzbar.

Bin gespannt auf deine / eure Rückmeldung.

#Nextcloud #Backup #Skript #Script #Shellskript #Shellscript

Nextcloud-Backup-Restore

Bash scripts for backup/restore of Nextcloud

Codeberg.org

Came across this yesterday and it's really helpful for chmod:

https://chmodcommand.com/

#chmod #Linux

Chmod Calculator | Chmod Generator | Chmod Command

Quickly generate permissions in numerical and symbolic formats. All options included (recursive, sticky, etc). Ready to copy paste to your terminal in seconds.

Chmod Command Calculator

@benjamineskola

Yes I mean chown.

For some odd reason my usage of chown gave only warnings the past few years when I used the incorrect syntax.

Thank you for the correction and Enlightenment

#chown
#chmod #syntax #formatting #command #Linux #BSD

chown user.user

was the syntax until until I recently noticed that it was changed to

chown user:user

I have to check out why that occurred. I also have to check if they only changed it in the Linux version of the command or if the change was also propagated to the BSD flavors of operating systems

#chmod #syntax #formatting #command #Linux #BSD

Let's Learn Linux: Manage file permissions and ownership

https://video.fosshq.org/w/kDkWxTK16pSSqudngQaswh

Let's Learn Linux: Manage file permissions and ownership

PeerTube
chmod grants all privileges with 777... TempleOS/Holy C/Terry Davis reference?! 🤯
#linux #templeos #holyc #terrydavis #chmod #holy

3/3
Details warum das so ist, ob man das wirklich braucht (nein?!) und was man dafür oder dagegen machen kann sind in folgenden Link nachzulesen:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30aba6656f61ed44cba445a3c0d38b296fa9e8f5

#verschlimmbessert #ctf #cybersecurity #linux #broken #permissions #chmod #sysctl

Making sure you're not a bot!