LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2005, 09:16 AM   #1
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Exclamation chroot jail - jumps back to password prompt


Hi all

I've setup (or trying to setup) a chroot jail system on a Fedora Core 4 box.

I followed the instructions here: http://www.antionline.com/showthread...hreadid=250875

Here's what I have in the users chroot folder:

bin
bash su

etc
DIR_COLORS group passwd profile

lib
ld-linux.so.2 libdl.so.2 libnss_compat.so.2 librt.so.1 libcrypt.so.1 libgdbm.so.2 libnss_files.so.2 libtermcap.so.2 libc.so.6 libnsl.so.1 libpthread.so.0

When I ssh to the box and login as the user I get the last login time date etc but goes straight back to the password prompt.
I'm guessing that I'm missing some files needed to run a shell but not sure what...any help appreciated
 
Old 12-05-2005, 10:14 AM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Original Poster
Rep: Reputation: 30
Just a quick update - if I ssh from the box like this it prompts for the password - then returns with another password prompt but it's clear text, then I get an error...

ssh -l CIS localhost /bin/rsync
CIS@localhost's password:
Password:<can read this password>

Sorry, user CIS is not allowed to execute '/usr/sbin/chroot /home/CIS /bin/su CIS -c ' as root on localhost.localdomain.
 
  


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 01:30 PM
Chroot jail pachanga Linux - General 12 09-26-2008 05:15 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 02:20 AM
chroot jail etc. f1uke Linux - Security 5 08-24-2005 03:12 AM
chroot jail simon Linux - Security 3 08-05-2001 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration