Hi,
I am trying to get a user backuppc on a ubuntu server installation to be able to backup everything using tar. So I added to my sudoers file:
Code:
root ALL=(ALL) ALL
backuppc ALL=(root) NOPASSWD:/bin/tar
However, when I try to backup /home with tar using backuppc I get permission denied:
Code:
$ sudo -u backuppc /bin/tar cvf /tmp/pmatos.tar /home
/bin/tar: Removing leading `/' from member names
/home/
/home/pmatos/
/bin/tar: /home/pmatos/.bash_history: Cannot open: Permission denied
/bin/tar: /home/pmatos/.lesshst: Cannot open: Permission denied
/home/pmatos/.emacs.d/
/bin/tar: /home/pmatos/.emacs.d/auto-save-list: Cannot open: Permission denied
/home/pmatos/.sudo_as_admin_successful
/bin/tar: /home/pmatos/.rnd: Cannot open: Permission denied
/bin/tar: /home/pmatos/.cache: Cannot open: Permission denied
/home/pmatos/.bash_logout
/bin/tar: /home/pmatos/.ssh: Cannot open: Permission denied
/home/pmatos/.profile
/bin/tar: /home/pmatos/Maildir: Cannot open: Permission denied
/home/pmatos/.bashrc
/bin/tar: /home/pmatos/.nano_history: Cannot open: Permission denied
/bin/tar: Exiting with failure status due to previous errors
Any ideas on why this happens?
Bookmarks