Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-05-2005, 10:16 AM   #1
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:

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

bash su

DIR_COLORS group passwd profile


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, 11:14 AM   #2
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.


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
chroot jail etc. f1uke Linux - Security 5 08-24-2005 04:12 AM
chroot jail simon Linux - Security 3 08-05-2001 09:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 AM.

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