#1  
Old 12th August 2006, 21:25
adrenalinic adrenalinic is offline
Senior Member
 
Join Date: Jan 2006
Posts: 200
Thanks: 3
Thanked 4 Times in 4 Posts
Default chroot access problem

Hi.
I have followed this tutorial setting chroot enviroment.
http://howtoforge.com/chrooted_ssh_howto_debian_p2

Now, when try to login with chroot username, the shell access close automaticaly!

The error is: /bin/bash: No such file or directory
Connection to 111.111.111.111 closed.

but the file /bin/bash exist and folders and files have the correct permission.
Permission: user=root
group=group

Any idea?

Thanks josef

Last edited by adrenalinic; 12th August 2006 at 22:02.
Reply With Quote
Sponsored Links
  #2  
Old 13th August 2006, 20:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What's the username? What's the user's entry from /etc/passwd?
Which distribution do you use?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th August 2006, 23:45
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, if you are creating SSH in a chroot environment then you need to have all binaries and libraries necessary within the chroot "root" directory. So, if you are chrooting to the user's home directory such as '/home/user' then you must have '/home/user/bin/bash' since '/bin/bash' is from the chroot env '/home/user'.

Maybe that helps.
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #4  
Old 29th June 2007, 16:24
Mr Blek Mr Blek is offline
Junior Member
 
Join Date: Jun 2006
Posts: 26
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Sorry to bump this old thread, but I'm getting the same problem.

ISPConfig with chroot off:

web4_admin:x:10004:10004:admin:/srv/www/web4:/bin/bash

ISPConfig with chroot on:

web4_admin:x:10004:10004:admin:/srv/www/web4/./:/bin/bash

When on, the connection simply closes. Any ideas?
Reply With Quote
  #5  
Old 30th June 2007, 16:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Any errors in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Install Problem... roy_wiz678@yahoo.com.ph Installation/Configuration 2 15th July 2006 13:19
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
FTP access problem... ctroyp General 7 12th October 2005 17:07


All times are GMT +2. The time now is 11:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.