Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a new MythTV box at home and figured it would be a great opportunity to use it to do daily mirrors of my mysqlbackup directory (let's say /mysqlbackup/backups) and my website at /usr/local/apache/htdocs and below.

I figured it would be a best practice NOT to use a root login but to create a user (say dhebackup). The Myth box would rsync in as that user.

I'm not 100% up on permissions (way lower!) so I'm wondering if I need to do anything permission-wise, group-wise, etc. to give the backup user access to those dirs and sub dirs only without affecting any of the other users (root, apache, etc) that would need access to those dirs.

Thanks for any pointers.

share|improve this question
up vote 1 down vote accepted

Ubuntu file permissions indicate permission for owner, then same group, then everyone else.

So rwxr-x--- means the owner can do all, group can read or execute, others can't access

A user can belong to one or more groups and can change group with chgrp

So what you want to do is put a new user into the groups that the file owner(s) are in for the files you want to backup ---- or make sure all logged in users can read the files you want to backup.

share|improve this answer
Great I'll start with that. – Ian Apr 6 '11 at 15:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.