Hello everyone,
I'm running a server that I want to lock user access to a directory I created (and mounted a file system to) so that a user cannot browse through my whole system when ssh-ed into my server. I want to use chroot(8) to lock them down to directory /root/storage, which has other sub-directories within it. After adding the chroot(8) configuration to sshd_config I get the following message when attempting to log into the server:
My client will also display an authentication error when that message displays on my server. I figured this all might be caused by a permissions issue so I tried to
Thanks!!
I'm running a server that I want to lock user access to a directory I created (and mounted a file system to) so that a user cannot browse through my whole system when ssh-ed into my server. I want to use chroot(8) to lock them down to directory /root/storage, which has other sub-directories within it. After adding the chroot(8) configuration to sshd_config I get the following message when attempting to log into the server:
Code:
fatal: bad ownership or modes for chroot directory component "/root/storage"
My client will also display an authentication error when that message displays on my server. I figured this all might be caused by a permissions issue so I tried to
chmod 777
that directory, but it made no difference. Something to note...I have a raid 1 volume mounted to that directory (/root/storage). Could there be any issue due to this? Any other thoughts or insights would be appreciated.Thanks!!
Last edited by a moderator: