sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #75453
Re: chroot i script
Kristian Nørgaard <kristian@xxxxxxxxxxxxxxxxxxx> writes:
> chroot NEWROOT [COMMAND...]
>
> vil cd ikke godtages som led i COMMAND
Nej, for cd er ikke et program, men en indbygget kommando i
shellen. Du kan måske gøre noget ala:
# chroot NEWROOT sh -c 'cd /foo; /bin/just_do_some_stuff'
--
Peter Makholm | First you fall in love with Antarctica, and then it
peter@xxxxxxxxxxx | breaks your heart
http://hacking.dk | -- Antarctica
Follow ups
References