[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Howto check user
From: |
Chip Seraphine |
Subject: |
Re: Howto check user |
Date: |
Wed, 7 Jul 2004 10:21:12 -0500 |
User-agent: |
KMail/1.5.4 |
If you don't have any kind of fancy user management, using editfiles to find a
line beginning with ^username: should work.
Lots of ways to do it if you don't mind shelling out with a 'ReturnsZero';
doing a 'getpwnam' in perl is good. Doing a finger or an id and checking the
return value is also fine. (Be careful if cross platform, since utilities
like that sometimes move around from OS to OS.)
On Wednesday 07 July 2004 09:50, Sigurd Trygg wrote:
> Hi all,
>
> [RH-7.3, i386]
>
> Using cfengine 2.1, what is the most convenient way to check if a user
> exists on a system?
>
> Sigurd
> --
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
>
--
Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com