Commits

Andriy Kornatskyy committed ac966d3

How to chroot ntp in Debian

  • Participants
  • Parent commits c542050

Comments (0)

Files changed (1)

+#!/bin/bash
+
+/etc/init.d/ntp stop
+mkdir -p /var/chroot/ntp/{etc,var/run}
+chown -R ntp:ntp /var/chroot/ntp/var/run
+
+mv /etc/ntp.conf /var/chroot/ntp/etc
+ln -s /var/chroot/ntp/etc/ntp.conf /etc/ntp.conf
+