scp-only_mit_change_root
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
| scp-only_mit_change_root [2016-04-12 22:50:00] – Externe Bearbeitung 127.0.0.1 | scp-only_mit_change_root [2018-01-27 02:42:50] (aktuell) – manfred | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== SCP-only mit Change Root ====== | ||
| + | |||
| + | **Damit das funktioniert, | ||
| + | |||
| + | Erstmal muss natürlich das Programm installiert werden: | ||
| + | |||
| + | # aptitude -y install scponly | ||
| + | |||
| + | Dann muss es für //chroot// um-konfiguriert werden: | ||
| + | |||
| + | # dpkg-reconfigure -plow scponly | ||
| + | |||
| + | Den ersten von zwei Fehlern im Paket umgeht man so: | ||
| + | |||
| + | # ln -s / | ||
| + | |||
| + | Jetzt können wir den neuen und speziell gesicherten Benutzer anlegen: | ||
| + | |||
| + | # cd / | ||
| + | # ./ | ||
| + | | ||
| + | Next we need to set the home directory for this scponly user. | ||
| + | please note that the user's home directory MUST NOT be writeable | ||
| + | by the scponly user. this is important so that the scponly user | ||
| + | cannot subvert the .ssh configuration parameters. | ||
| + | | ||
| + | for this reason, a writeable subdirectory will be created that | ||
| + | the scponly user can write into. | ||
| + | | ||
| + | -en Username to install [scponly] | ||
| + | fritz | ||
| + | -en home directory you wish to set for this user [/ | ||
| + | | ||
| + | -en name of the writeable subdirectory [incoming] | ||
| + | DATEN | ||
| + | -e | ||
| + | creating | ||
| + | | ||
| + | Your platform (Linux) does not have a platform specific setup script. | ||
| + | This install script will attempt a best guess. | ||
| + | If you perform customizations, | ||
| + | Look to the templates in build_extras/ | ||
| + | - joe at sublimation dot org | ||
| + | | ||
| + | please set the password for fritz: | ||
| + | Geben Sie ein neues UNIX Passwort ein: | ||
| + | Geben Sie das neue UNIX Passwort erneut ein: | ||
| + | passwd: password updated successfully | ||
| + | if you experience a warning with winscp regarding groups, please install | ||
| + | the provided hacked out fake groups program into your chroot, like so: | ||
| + | cp groups / | ||
| + | |||
| + | Bei 64-Bit-Maschinen geht es immernoch nicht, denn ein letzter Fehler muss erst noch beseitigt werden: | ||
| + | |||
| + | # cd / | ||
| + | # mkdir lib64 | ||
| + | # cd lib64 | ||
| + | # cp / | ||
| + | |||
| + | Jetzt kann man den Zugang per Browser ganz einfach testen: | ||
| + | |||
| + | sftp:// | ||
| + | |||
| + | |||
| + | ===== einen Sub-User anlegen ===== | ||
| + | |||
| + | Wir möchten einen Sub-User //Fratz// der unterhalb des Home-Verzeichnisses von //Fritz// liegt, anlegen. | ||
| + | |||
| + | # cd / | ||
| + | # ./ | ||
| + | | ||
| + | Next we need to set the home directory for this scponly user. | ||
| + | please note that the user's home directory MUST NOT be writeable | ||
| + | by the scponly user. this is important so that the scponly user | ||
| + | cannot subvert the .ssh configuration parameters. | ||
| + | | ||
| + | for this reason, a writeable subdirectory will be created that | ||
| + | the scponly user can write into. | ||
| + | | ||
| + | -en Username to install [scponly] | ||
| + | fratz | ||
| + | -en home directory you wish to set for this user [/ | ||
| + | / | ||
| + | -en name of the writeable subdirectory [incoming] | ||
| + | DATEN | ||
| + | -e | ||
| + | creating | ||
| + | | ||
| + | Your platform (Linux) does not have a platform specific setup script. | ||
| + | This install script will attempt a best guess. | ||
| + | If you perform customizations, | ||
| + | Look to the templates in build_extras/ | ||
| + | - joe at sublimation dot org | ||
| + | | ||
| + | please set the password for fratz: | ||
| + | Geben Sie ein neues UNIX Passwort ein: | ||
| + | Geben Sie das neue UNIX Passwort erneut ein: | ||
| + | passwd: password updated successfully | ||
| + | if you experience a warning with winscp regarding groups, please install | ||
| + | the provided hacked out fake groups program into your chroot, like so: | ||
| + | cp groups / | ||
| + | |||
| + | Den bekannten 64-Bit-Bug beheben: | ||
| + | |||
| + | # cd / | ||
| + | # mkdir lib64 | ||
| + | # cd lib64 | ||
| + | # cp / | ||
| + | |||
| + | Jetzt müssen wir noch dafür sorgen, dass Fritz Daten in das Verzeichnis von Fratz reinschreiben darf, damit ein Datenaustausch möglich wird. | ||
| + | |||
| + | chmod 0775 / | ||
| + | chgrp fritz / | ||
| + | |||
| + | Wenn man jetzt meherere Sub-User von //Fritz// anlegt (wie z.B. Fratz), dann kann //Fritz// mit allen Sub-Usern Daten austauschen. | ||
| + | |||
| + | Die Sub-User können dagegen keine Daten untereinander austauschen. | ||
| + | |||
| + | |||
| + | ===== Client ===== | ||
| + | |||
| + | Windows-User können [[https:// | ||
| + | |||
