in reply to chroot fails for no obvious reason

I saw that in the manpage, but then why doesn't it fail for my HOME directory?

Replies are listed 'Best First'.
Re: Re: chroot fails for no obvious reason
by merlyn (Sage) on May 09, 2001 at 21:09 UTC
    Perhaps because you're doing them sequentially?

    After you've chrooted, do you have a directory with that longer path below the directory that is now slash?

    -- Randal L. Schwartz, Perl hacker

      That's a brilliant observation, but off-target. I took the "home" key-value pair out of the hash, so there was only one chroot call, and it still failed the same way.
        Then look at what chroot(2) says for "not owner" on your system. Since you don't give the architecture, we can't guess. And I don't find "not owner" as an errno string on Linux. Perhaps you're using BSD?

        -- Randal L. Schwartz, Perl hacker

Re: Re: chroot fails for no obvious reason
by rpc (Monk) on May 09, 2001 at 21:10 UTC
    (rpc@marduk):(~)$ id uid=1000(rpc) gid=1000(rpc) groups=1000(rpc) (rpc@marduk):(~)$ perl -e "chroot '/home/rpc' or die" Died at -e line 1. (rpc@marduk):(~)$