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'm looking for a simple revision control system for server configs. Something like works like git, but preserves Unix file permissions. And is NOT RCS.

Any tips?


share|improve this question
What are the characteristics of RCS you need to be absent in the not-RCS tool? – RedGrittyBrick Apr 8 '11 at 10:11
why not just write a small bash script that logs /restores the permissions on each versioned file, and check that into the vcs also ? Generally i think the reason most systems dont do it automatically is because its alot more hassle than its worth with regards to file ownership and checkouts going to more than one client. – Sirex Apr 8 '11 at 10:26
A configuration management system (Puppet or similar) can effectively do revision control on your configuration files, and can also set permissions after installing them. – Mike Renfro Apr 8 '11 at 11:40
up vote 0 down vote accepted

You may want to look at etckeeper

It does well with /etc perms, and can be extended to work outside /etc.

Also git by itself, can be extended with hooks:

share|improve this answer

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.