Mailinglist Archive: opensuse-security (195 mails)

< Previous Next >
Re: [suse-security] ssh with chroot ?
  • From: "Security" <security@xxxxxxxx>
  • Date: Fri, 3 Mar 2000 14:42:38 +0100
  • Message-id: <001f01bf8516$57856d40$0601a8c0@xxxxxxxxx>
> Some months ago, as I seem to remember, there was a thread about
> creating ssh-logins with limited file-system access (even a proper
> file-system). I then noticed it, and thought it could be
> interesting, but apparently I didn't save these files. Is there
> anybody in the neighbourhood that could dish up these messages ? or a
> conclusion, a direction to follow so I can offer people access to a
> (very limited) portion of my filesystem.

> I would like them to have e.g.
> chroot /tmp/unsecure_root /bin/sh
> as shell, but I keep getting an error-answer
> /usr/sbin/chroot: cannot execute sh: No such file or directory

> What am I doing wrong ?

You have to set up a complete root filesystem with
all the needed directories and files (/sbin /etc ...)
in the chrooted directory.

Hope, that someone can give a minimum list of that.

Bernhard Mackert




< Previous Next >
Follow Ups
References