Gentoo Archives: gentoo-amd64

From: Dan Johansson <Dan.Johansson@×××.nu>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Can not change to chroot'ed environment
Date: Sat, 26 Aug 2006 12:50:34
Message-Id: 200608261448.45898.Dan.Johansson@dmj.nu
1 I've just installed app-misc/jail and created the chroot'ed environment
2 (following http://gentoo-wiki.com/HOWTO_Jail). Now when I try to do a
3 'su - prisoner' or 'ssh prisoner@localhost' I'm only getting a "jail:
4 execve() : No such file or directory" and if I do a starce this is what I
5 get:
6
7 getuid() = 1003
8 getgid() = 100
9 setgid(0) = -1 EPERM (Operation not permitted)
10 write(2, "jail: can\'t chroot(). (Is jail o"..., 74jail: can't chroot(). (Is
11 jail owned by root and has setuid permissions?)
12 ) = 74
13 exit_group(-1) = ?
14
15 # ll /usr/bin/jail
16 -rws--x--x 1 root root 19136 Aug 26 14:08 /usr/bin/jail*
17
18 Any suggestions on how to solve?
19 --
20 Dan Johansson, <http://www.dmj.nu>
21 ***************************************************
22 This message is printed on 100% recycled electrons!
23 ***************************************************

Replies

Subject Author
Re: [gentoo-amd64] Can not change to chroot'ed environment Reinhard Kotucha <reinhard.kotucha@×××.de>