[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Determining user ID
From: |
Tim Nelson |
Subject: |
Re: Determining user ID |
Date: |
Thu, 22 Dec 2005 12:20:20 +1100 (EST) |
On Wed, 21 Dec 2005, Christopher Browne wrote:
pginfo = ReturnsZero(/bin/sh -c "/usr/bin/whoami | grep pginfo")
postgres = ReturnsZero(/bin/sh -c "/usr/bin/whoami | grep postgres")
cbbrowne = ReturnsZero(/bin/sh -c "/usr/bin/whoami | grep cbbrowne")
This has the irritation that I have to predefine every user I could
possibly want to use, although I suppose that's no big deal in view
that I'd have to make a reference to it in order to use it...
This is why you filter your config with Perl.
http://arpmats.sourceforge.net/ and click on cfengine-masterconf
:)
--
Kind Regards,
Tim Nelson
Server Administrator
P: 03 9934 0888
F: 03 9934 0899
E: tim.nelson@webalive.biz
W: www.webalive.biz
WebAlive Technologies
Level 1, Innovation Building
Digital Harbour
1010 La Trobe Street
Docklands Melbourne VIC 3008
This email (including all attachments) is intended solely for the named
addressee. It is confidential and may contain legally privileged information. If
you receive it in error, please let us know by reply email, delete it from your
system and destroy any copies. This email is also subject to copyright. No
part of it should be reproduced, adapted or transmitted without the written
consent of the copyright owner.
Emails may be interfered with, may contain computer viruses or other defects
and may not be successfully replicated on other systems. We give no
warranties in relation to these matters. If you have any doubts about the
authenticity of an email purportedly sent by us, please contact us immediately.