Permission problem - I wand to backup the /root dir

Asked by patrickf

I got the following error - trying to backup the /root directory:

An error occured making /root backup:
ListError .ICEauthority [Errno 13] Permission denied: '/root/.ICEauthority' ListError .Trash [Errno 13] Permission denied: '/root/.Trash' ListError .Xauthority [Errno 13] Permission denied: '/root/.Xauthority' ListError .bash_history [Errno 13] Permission denied: '/root/.bash_history' ListError .dmrc [Errno 13] Permission denied: '/root/.dmrc' ListError .esd_auth [Errno 13] Permission denied: '/root/.esd_auth' ListError .gconf [Errno 13] Permission denied: '/root/.gconf' ListError .gconfd [Errno 13] Permission denied: '/root/.gconfd' ListError .gnome2 [Errno 13] Permission denied: '/root/.gnome2' ListError .gnome2_private [Errno 13] Permission denied: '/root/.gnome2_private' ListError .gstreamer-0.10/registry.i486.xml [Errno 13] Permission denied: '/root/.gstreamer-0.10/registry.i486.xml' ListError .lesshst [Errno 13] Permission denied: '/root/.lesshst' ListError .mc/cedit [Errno 13] Permission denied: '/root/.mc/cedit' ListError .mc/history [Errno 13] Permission denied: '/root/.mc/history' ListError .metacity [Errno 13] Permission denied: '/root/.metacity' ListError .mysql_history [Errno 13] Permission denied: '/root/.mysql_history' ListError .nautilus/metafiles [Errno 13] Permission denied: '/root/.nautilus/metafiles' ListError .nautilus/saved-session-DH7NUT [Errno 13] Permission denied: '/root/.nautilus/saved-session-DH7NUT' ListError .rnd [Errno 13] Permission denied: '/root/.rnd' ListError .synaptic [Errno 13] Permission denied: '/root/.synaptic' ListError .vnc/passwd [Errno 13] Permission denied: '/root/.vnc/passwd' ListError .w3m [Errno 13] Permission denied: '/root/.w3m'

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu keep Edit question
Assignee:
No assignee Edit question
Solved by:
Artem Popov
Solved:
Last query:
Last reply:
Revision history for this message
Best Artem Popov (artfwo) said :
#1

Hello!

Ubuntu does not (normally) use the /root directory for any purpose, because root-account is disabled by default. But if you still need to backup any directory without read permission (not just /root), simply run your backup software using either "sudo" or a privileged shell (you can enter root-shell by typing "sudo -s").

Hope this helps :)

Revision history for this message
patrickf (patrick-fanzott) said :
#2

Thanks Артём Попов, that solved my question.

Revision history for this message
Marius Kruger (amanica) said :
#3

I simply edited my Keep menu item to run
`kdesu keep` in stead of `keep`.
now it automatically goes into su mode when I startup keep.
Will still have to see if the daemon for root in stead of my user start up.

Revision history for this message
Marius Kruger (amanica) said :
#4

Changing my menu to run keep through kdesu, was a stupid idea,
because I could not get the daemon to run as root while I use KDE as my user (these are KDE daemons, not systemwide daemons).
I really wanted it to run as root because I wanted to back up all of /etc .
Now I'm the changing the permissions of the files under /etc that I can afford to make readable by all,
and painstakingly 'excluding' the files which I don't want publicly readable.
The down side is now that those files won't be backed up :( .