Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- I cant authenticate a chrooted user
- markus berges
August 30, 2005, 3:48 pm
rate this thread
I try run this chroot-stuff for sftp, since I shall provide
ftp access to some users, who should be restricted to their directories.
what I did ...
I compiled openssh-3.9 four or five times using different patches
for session.c, always building this chroot environment with all the
libraries and its own directorie-tree. Most of them were dealing with
this magicpoint thing like "/./" and one of them wanted the chrooted
user to belong to a group like "shacc"
After all I tried out this scponly stuff, which seemed to work fine
since there is a setup_chroot.sh - shell-script building the chroot.
my problem ...
All attempts were leading to the same problem. I'm not able to authenticate
a chrooted user in any of this cases. Neither when using the private/public
key pair (one, that works fine for a not chrooted user), nor if trying the
password authentication, though I copied the passwd, shadow, group to his
In this scponly-homepage, where they explain how this works, they say
the authentication-stuff will be done by openssh in the first step and than,
afterwards in the second step the user will be chrooted.
Hope somebody has a hint, how I can deal with this problem.
thanks in advance
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum