LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-12-2007, 06:30 PM   #1
zdannar
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
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.
 
Old 07-12-2007, 06:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,666
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
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.
 
Old 07-12-2007, 06:50 PM   #3
zdannar
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 07-12-2007, 06:51 PM   #4
zdannar
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot jail Gimpy Linux - Software 10 05-07-2010 02:30 PM
Chroot jail pachanga Linux - General 12 09-26-2008 06:15 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 03:20 AM
ssh session in a chroot jail? houler Linux - Security 13 04-05-2005 02:10 AM
chroot jail simon Linux - Security 3 08-05-2001 09:21 PM


All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration