help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vipw with cfengine?


From: Kai Großjohann
Subject: Re: vipw with cfengine?
Date: Wed, 27 Nov 2002 16:08:30 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

skaar <skaar@aol.net> writes:

> provided that cfengine is the only thing that will update your password
> file, you don't have to care much about the locking - you would:

Heh, I do expect that users might type "passwd" or "chfn"...

Maybe another solution is to write a shell script

    #!/bin/sh
    cfagent -f /var/lib/cfengine2/inputs/cf.edpw

where cf.edpw is a cfengine config file that edits the passwd file as
I like.  Then cfagent.conf runs a shell command that's something like
"EDITOR=/the/above/script vipw".

One might have to extend the above script to make sure to edit the
temp file that vipw creates, instead of /etc/passwd.
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]