Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
lpi2:install [2014/01/21 19:11] ingo_wichmann angelegt |
lpi2:install [2025/09/05 04:38] (aktuell) ingo_wichmann [Datei anlegen mit install] |
||
|---|---|---|---|
| Zeile 6: | Zeile 6: | ||
| ====== Datei anlegen mit install ====== | ====== Datei anlegen mit install ====== | ||
| - | install -o www-data -g root -m 0700 /tmp/test-file | + | install -o www-data -g root -m 0600 /tmp/test-file |
| + | unter Debian: | ||
| + | install -o www-data -g root -m 0600 /dev/null /tmp/test-file | ||
| ist die Kurzform für: | ist die Kurzform für: | ||
| touch /tmp/test-file | touch /tmp/test-file | ||
| - | chmod 0700 /tmp/test-file | + | chmod 0600 /tmp/test-file |
| chown www-data:root /tmp/test-file | chown www-data:root /tmp/test-file | ||
| + | |||
| + | ====== Datei kopieren mit install ====== | ||
| + | ''/etc/passwd'' nach ''/tmp/passwd'' kopieren: | ||
| + | install -o www-data -g root -m 0700 /etc/passwd /tmp/passwd | ||
| + | ist die Kurzform für: | ||
| + | cp /etc/passwd /tmp/passwd | ||
| + | chmod 0700 /tmp/passwd | ||
| + | chown www-data:root /tmp/passwd | ||