Friday, 6 February 2015

[SOLVED] Rsync grabbing root files on the remote server? topic






How could I set up rsync to grab files owned by root on the remote server. I've noticed that if I log in over ssh with rsync as a 'regular' user, that it doesn't pull the files that are owned by root. Even if the files have read for group/world permissions. I get permission denied errors.

But I figure this should be doable. There must be something I can add to the sudoers file that gives the 'regular' user permission access those files for rsync.

Like adding 'cp' or 'mv' or 'rsync' or some other command to the sudoers file so my regular user doesn't need a password.Is this doable?

(I don't want to allow root login on ssh if I can avoid it)

Thanks.

I must admit, I didn't think this would be a problem since the files are readable by the world. I thought I could just read them off and transfer them, but leave ownerhsip root. But this doesn't work (unless I'm doing something wrong).






No comments:

Post a Comment