NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

chroot not working



Hello,

I'm trying to run a simple chroot test and, perplexingly, it's not
working:

	# ls -l /var/chroot/test/bin/sh
	-r-xr-xr-x  1 root wheel  255840 Dec 13 18:37 /var/chroot/test/bin/sh
	# cd /var/chroot/test/
	# ./bin/sh -c 'exit 7'; echo $?
	7
	# chroot /var/chroot/test /bin/sh -c 'exit 7'
	chroot: /bin/sh: No such file or directory

What am I doing wrong here?

Thanks,

-- 
Paul W. Rankin
https://rnkn.xyz



Home | Main Index | Thread Index | Old Index