[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: User management
From: |
Martin, Jason H |
Subject: |
RE: User management |
Date: |
Tue, 27 Sep 2005 16:21:06 -0700 |
Are you sure you want to do this with CFEngine instead of via something
like LDAP?
An editfiles block for /etc/passwd and /etc/shadow would probably work.
-Jason Martin
> -----Original Message-----
> From:
> help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org
> [mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.
> org] On Behalf Of Matthew Palmer
> Sent: Tuesday, September 27, 2005 1:34 AM
> To: help-cfengine@gnu.org
> Subject: User management
>
>
> Is there a standard recommended way to manage the existence
> of local user accounts on cfengine-managed systems? I have a
> deep and abiding need to manage the creation of accounts on a
> bunch of machines, and it seems the easiest to have cfengine
> manage all of that hoohah.
>
> I'm currently running a script like so:
>
> #!/bin/sh -e
>
> if ! getent passwd $1; then
> adduser --disabled-password $1
> fi
>
> (Debian-specific, but the guts can be modified for any distro
> you like)
>
> This *feels* like a dirty hack to me; there has to be a more
> cfengine way, but I'm not sure which method would be nicest.
> Any suggestions? Google
> (surprisingly) didn't give me much love with queries like
> "cfengine create user" and "cfengine manage users".
>
> - Matt
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-> cfengine
>
- User management, Matthew Palmer, 2005/09/27
- RE: User management,
Martin, Jason H <=