chroot --userspec=root:root /tmp/ /bin/sh führt =?iso-8859-1?Q?_zu_?="chroot: invalid user"

Helmut Schneider jumper99 at gmx.de
Di Jul 19 17:17:21 UTC 2011


Hi,

helmut at mail:~$ sudo chroot --userspec=root:root /tmp/ /bin/sh
chroot: invalid user
helmut at mail:~$

Lt. manpage sollte das doch tun, oder?

       --userspec=USER:GROUP
              specify user and group (ID or name) to use

Warum nicht? Das hier tut:

helmut at mail:~$ sudo chroot --userspec=0:0 /tmp/ /bin/sh
# exit
helmut at mail:~$

helmut at mail:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.04
Release:        11.04
Codename:       natty
helmut at mail:~$

Danke und Gruß, Helmut




Mehr Informationen über die Mailingliste ubuntu-de