Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Letzte Überarbeitung Beide Seiten, nächste Überarbeitung | |||
lpi2:install [2014/01/21 19:11] ingo_wichmann angelegt |
lpi2:install [2014/02/11 18:11] ingo_wichmann [Datei anlegen mit install] |
||
---|---|---|---|
Zeile 11: | Zeile 11: | ||
chmod 0700 /tmp/test-file | chmod 0700 /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 | ||