Posted: October 2nd, 2010 | Author: rthomson | Filed under: Sysadmin | Tags: cfengine, linux, policy, script, security, server, software, sudo | 3 Comments »
It’s been a while since I’ve really had time to delve too much further into cfengine 3 since my previous post on the subject way back in May but I do have another simple example to share. This time it’s about managing your sudo policy via the sudoers file.
The example is that of a very, very basic sudoers policy but the principles are easily extended to create much more complex policy. The general idea here is that we want cfengine to ensure that specific rules are always in place. Instructed properly, cfengine accomplishes this very well.
Warning: I don’t know anything. I’m just someone learning cfengine 3 and posting about it. If I’m wrong about something, let me know! If you find this at all useful, be my guest. That is all.
[ Read More ]»
Posted: March 29th, 2010 | Author: rthomson | Filed under: Sysadmin | Tags: bash, code, script | No Comments »
I present to you nanorcs, my ultrasimplistic configuration file revision control method. It’s nothing significant but at least it’s something to post about.
What is nanorcs? It’s a very simple bash script wrapper around the nano, the cute GNU version of pico and RCS, a basic but functional revision control software package. The script is used in place of a call to ‘nano’ when editing a file and it automates the tasks related to change management of configuration files including tasks such as check in/out, and prompting the user when a discrepancy between the current file version and the RCS version exist.