two possible changes to apt-mirror if bash is available make that the default shell restrict the program so that it is only run as the apt-mirror user i forgot and ran it as root once and had to chown everything