View Single Post
  #7   (View Single Post)  
Old 27th July 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

FYI

If you want to give shell access, you have a lot of work to do. Not just the device list per ssh_config(5), below, but also any programs and libraries that will be needed. Much of /bin, /usr/bin, /usr/lib, /usr/local/bin, /usr/local/lib will be needed along with the appropriate shell and the /dev nodes described in the man page:
Quote:
The ChrootDirectory must contain the necessary files and
directories to support the user's session. For an interactive
session this requires at least a shell, typically sh(1), and
basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
stderr(4), arandom(4) and tty(4) devices. For file transfer
sessions using ``sftp'', no additional configuration of the
environment is necessary if the in-process sftp server is used,
though sessions which use logging do require /dev/log inside the
chroot directory (see sftp-server(8) for details).
Reply With Quote