chroot ssh
Rob
rob at OhReally.com
Fri Apr 16 22:26:12 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
J,
vrijdag 16 april 2004 23:47, j.travis:
>- useradd -s /bin/bash -d /home/chroot/./testssh/ -c "ssh-test"
Change '-d /home/chroot/./testssh/' to '-d /home/chroot/'
The dot ('/./') has nothing to do with your system or your permissions
or whatever. It's just a string you use in your ssh(d) config. And
that's the only place to use it.
(To be honest, I've never used it in an ssh env, so I can't tell you
where to use it exactly, but ftp uses the same scheme.)
When sshd reads it's config, it reads
/home/chroot/./
and interprets it like
chroot /home/chroot/
Rob
- --
PGP public key:
http://www.OhReally.com/pubkey.asc
Key fingerprint:
9EEB 484F 6C91 3DD2 4C8D 3F1C 1D7D 189B 4BF0 E1DC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAgF2LHX0Ym0vw4dwRAsjkAKCSP7cPVsnn4Btbap2ZrdfGjChMCwCfcuxw
fazlanYUEeDE/ZWkeNYz2uM=
=1zUL
-----END PGP SIGNATURE-----
More information about the redhat-list
mailing list