Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.