NTP: how to chroot

The following bash script will automate the configuration of ntp to run in a jail (chroot) for a debian/ubuntu. #!/bin/bash /etc/init.d/ntp stop rootfs=/var/chroot/ntp mkdir -p $rootfs/{etc,var/lib/ntp,var/log} mv /etc/ntp.conf $rootfs/etc ln -s $rootfs/etc/ntp.conf /etc/ntp.conf if [ -e /var/lib/ntp/ntp.drift ]; then mv