#1  
Old 11th January 2011, 22:34
BrianUK BrianUK is offline
Junior Member
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Chrooted SSH/SFTP

I've followed this http://www.howtoforge.com/chrooted-s...l-debian-lenny how to however run into a couple of problems.

an ls under my test users home directory shows

bin dev etc home lib sbin usr

which I guess is for them to have access to the programs defined under APPS= in make_chroot_jail.sh

When logging in via ssh the default directory is /home and not /home/test and I can also browse other users folders, that said I can't see anything lower than /home ie /usr.

Ideally i'd like the user jailed to their own home folder and a neater way of having the 'APPS' organized so it's not in ever users directory and run chrooted sftp and ssh.

here's a snip of the end of my sshd_config file

Code:
Subsystem sftp /usr/lib/openssh/sftp-server

Match Group users       
    ChrootDirectory /home
    AllowTCPForwarding no
    X11Forwarding no
Any help would be greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 12th January 2011, 15:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by BrianUK View Post
When logging in via ssh the default directory is /home and not /home/test and I can also browse other users folders, that said I can't see anything lower than /home ie /usr.
Are you sure this is the real /home directory, or is it the /home directory in the jail (i.e. /home/test/home)?
__________________
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 12th January 2011, 17:15
BrianUK BrianUK is offline
Junior Member
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

logging in pwd shows / and ls shows

bin dev etc home lib sbin test test2 usr

test2 is a seperate user so it seems it's the real /home

when I cd /test ls shows

bin dev etc home lib sbin usr
Reply With Quote
  #4  
Old 25th January 2011, 21:33
BrianUK BrianUK is offline
Junior Member
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can anyone help me with this?
Reply With Quote
  #5  
Old 26th January 2011, 15:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

I have no idea what's wrong...
__________________
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
  #6  
Old 26th January 2011, 21:11
BrianUK BrianUK is offline
Junior Member
 
Join Date: Mar 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

if I gave you a login to a 'fresh' install do you think you'd be able to have a try and see how the install goes for you? i'd happily make a donation or become a subscriber.
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
Chrooted SSH/SFTP On Fedora 7 vaio1 General 5 12th September 2008 18:01
Chrooted SSH/SFTP shopgeek Server Operation 1 8th July 2008 14:12
Chrooted SSH/SFTP Screen problems nicho12 HOWTO-Related Questions 5 31st May 2008 12:37
Chrooted SSH/SFTP need help docean Installation/Configuration 5 18th March 2008 17:26
Chrooted SSH/SFTP FFEMTcJ HOWTO-Related Questions 1 17th March 2008 15:58


All times are GMT +2. The time now is 15:47.


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