Re: chroot

Micha Holzmann <[email protected]>
Newsgroups gmane.linux.redhat.general.german
Message-ID <[email protected]>
Quoting Matthias Borrack <[email protected]>:
> Micha Holzmann wrote:
> > Auf jeden Fall musst du ssh selbst kompostieren. Den Patch habe ich und
> > kann in ggf. per Mail zusenden.
> >
> rssh würde sich auch anbieten, oder? Das benutze ich, und funktioniert
> Für ssh, sftp und scp ohne auf die "Krücke" /usr/bin/chroot
> zurückgreifen zu müssen. und ich finds auch einfacher.

ssh verwendet hier nicht die "Kruecke" /usr/bin/chroot. Im Source wird
geprueft ob das ein User fuer eine chroot umgebung ist und dann wird das
Userdir als / gesetzt.

Je nach Version von OpenSSH funktioniert das einarbeiten des Patches mit
patch nicht. Ich habe das dann immer "von Hand" durchgefuehrt.

Der Patch ist verfuegbar auf:

http://xenia.mine.nu/users/ssh/openssh-chroot-3.4p1.patch
http://xenia.mine.nu/users/ssh/passwd
http://xenia.mine.nu/users/ssh/tree.dat.gz


Eine Beispiel passwd ist auch dabei und welche Files und libs im chroot
home sein muessen.

Gruss,
Micha Holzmann

-- 
GPG Public-Key: send a Mail with Subject: GPG-KEY
Key fingerprint = 6FEF 16C5 17EF 9573 892B  D810 66B9 8FBD 0EBA 820F
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFARKOHZrmPvQ66gg8RAp0LAKCHtO2NTOxrA9XJhgpr0PW08AUa1ACeJhvq
5rD7Kuk36h8MuyEkcDF/n84=
=Sj3P
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.