Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?
Asked
Active
Viewed 403 times
0
a06e
- 13,223
- 26
- 70
- 104
1 Answers
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,122
- 21
- 114
- 172
apt-mirrordoes that requires admin rights? I just want to download a copy of the repository to my local PC. Why is that an administrator's task? I understand that installing something from that repository requiressudo, but just making a copy of the files shouldn't require admin. – a06e Nov 26 '14 at 16:18