LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware 10.2 chroot/jail ssh (https://www.linuxquestions.org/questions/slackware-14/slackware-10-2-chroot-jail-ssh-568871/)

zdannar 07-12-2007 05:30 PM

slackware 10.2 chroot/jail ssh
 
Hello all,

I have been trying to restrict access to my system by implementing a jailed ssh. I have not had much luck. I have downloaded the patched ssh compiled,Installed,created a test user and have no luck.

Here is the directory structure that I have created under /home/chroot.
.
|-- bin
| |-- bash
| |-- ls
| |-- mkdir
| |-- mv
| |-- ping
| |-- pwd
| `-- rm
|-- dev
| |-- null
| `-- zero
|-- etc
| |-- group
| `-- passwd
|-- home
| `-- sftptest
|-- lib
| |-- libc.so.6
| |-- libcrypt.so.1
| |-- libdl.so.2
| |-- libnsl.so.1
| |-- libpthread.so.0
| |-- libresolv.so.2
| |-- librt.so.1
| |-- libtermcap.so.2
| `-- libutil.so.1
`-- usr
|-- bin
| |-- dircolors
| |-- groups
| |-- id
| `-- ssh
`-- lib
|-- libcrypto.so.0
`-- libz.so.1

lines from the /home/chroot/etc/passwd:
sftptest:x:1002:100::/home/chroot/./home/sftptest:/bin/bash
line from /etc/passwd:
sftptest:x:1002:100::/home/chroot/./home/sftptest:/bin/bash

More information can be provided if necessary.


If there is another way the others have used(like jailkit) and had luck. Please let me know.

Thank in advance.

unSpawn 07-12-2007 05:44 PM

I have not had much luck.
Describing the exact steps you took (or where you got them from), any errors you encountered and any diagnostics you ran could be of more help to those trying to help you.

zdannar 07-12-2007 05:50 PM

I have looked through a few different 'HOWTOS' but here is the most current one.

http://www.howtoforge.com/chrooted_ssh_howto_debian_p2

I have double checked my steps a few times.

zdannar 07-12-2007 05:51 PM

To clarify, I do not have any problems logging into the account. My problem stems from the fact that the user is still able to browse the system.


All times are GMT -5. The time now is 02:57 AM.