0

Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?

a06e
  • 14,233

1 Answers1

1

apt-mirror uses port 21 [courtesy of ProFTPd] (all ports below 1024 require root), and stores information in /etc, /var, or /opt. As none of these locations are user-writable, sudo is required.

You may be able to get away by making apt-mirror store to a place you have write-access to, such as /home/$USER/.local-repo. sudo will still be needed to install programs from your mirror, though.

ProFTPd runs as a daemon, so you won't need to worry about that.

Kaz Wolfe
  • 34,680