[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Perl to check whether a user is administrator
- Subject: Re: [cobalt-users] Perl to check whether a user is administrator
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon Aug 5 05:46:05 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Mon, 5 Aug 2002, Gerald Waugh wrote:
> On Sun, 4 Aug 2002, Zhang Shiping wrote:
>
> > Hi all,
> >
> > In RaQ4 a site can have many users and one of the user
> > can be the site administrator. I Perl script how to
> > check whether a user is or is not the administrator
> > for a site?
> >
>
> Parse the /etc/passwd file.
>
Oops!
Parse the /etc/group file
--
Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
http://frontstreetnetworks.com | Website Hosts & SOHO Networks
229 Front Street, Ste.#C, New Haven, CT. 06513 United States
voice +1 203-785-0699 | fax +1 203-785-1787