Kommando als anderer User
sudo -u username command # als root: # zum User werden su -l username # mit runuser (command in double quotes) runuser -l username -c "command"
chmod rekursiv für Ordner und Dateien
# für Ordner (directory) find httpdocs/* -type d -exec chmod 755 {} \; # für Dateien (files) find httpdocs/* -type f -exec chmod 644 {} \;