On Wed, May 24, 2006 at 12:01:56PM +0200, Chris Osicki wrote:
> 
> Hi
> 
> I've just made my first experiences with rssh-2.3.2 on a Solaris8 box.
> I setup a chroot environment and everything works OK. Well, almost ;-)
> The chdir to the user's home directory doesn't.


That's because /opt/admin isn't in /opt/jail.  Note the leading slash:
we're dealing with absolute paths.

It works perfectly fine.  It's expected that /etc/passwd will be
copied into the jail and not modified.  Changing to a user's home
directory is only expected to work if the user's home directory exists
in the jail.  If the user's home directory is in the jail, then
specify the full absolute path in the passwd file, and it will work
fine.  

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

Attachment: pgpFPnfudAC18.pgp
Description: PGP signature

Reply via email to