Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Permissions for backup user
June 13, 2008, 7:23 pm
rate this thread
I have just finished setting up a backup scheme using rsnapshot over
ssh for my server. However, in order to have access to all the files,
I'm having to do this as root. For obvious reasons, I don't like have
root login enabled, even if it is protected with a public/private key
I would like to create a backup user to handle this. One does not
exist on my server at present. What permissions, group membership,
etc do I need to grant to this user to allow it to read all the
necessary files? I have seen some examples, too, where the shell for
the user was set to rsync. Does that work or provide more security?
Re: Permissions for backup user
For root access, you need to be root. QED.
However, you might consider using SSH tunneling to reach an rsync daemon on
the server, configured to allow read-only, root access, for exactly this
prupose. (I've done this with rsnapshot before, myself).
Keeping an rsync daemon to not go down mounted directories is non-trivial, and
requires advance knowledge of the mountpoints, unlike a direct rsync command.
But it can be done.
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security