how can I git-revise configs in my /etc/ dir? (sudo has different keys..)

Posted by Dean Rather on Server Fault See other posts from Server Fault or by Dean Rather
Published on 2012-09-02T10:34:59Z Indexed on 2012/09/02 15:40 UTC
Read the original article Hit count: 266

Filed under:
|
|

I'd like to keep some of the folders in my /etc/ dir git-revised, cause I'm quite new to server administration and am constantly messing around in my /etc/nginx/ and /etc/bind/ directories.

I've heard of people git-revising their either /etc/ directories, but that seems a bit like overkill, as at this point I'm only messing in those 2 subdirectories.

The problem I'm having is that if I sudo my git operations, I don't have the right pubkeys to push to my remote repo (bitbucket). But if I don't sudo, I need to mess around with all the permissions (again, not very pro at this).

Does anyone know best practices for managing their configs? or how I should solve this problem?

Thanks, Dean.

PS. It's Ubuntu 12.04, Git, nginx, bind9, amazon aws, bitbucket...

© Server Fault or respective owner

Related posts about ubuntu

Related posts about git