[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: adding users...
- From: Chris Ricker <kaboom oobleck net>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: adding users...
- Date: Fri, 22 Jul 2005 13:00:02 -0400 (EDT)
On Fri, 22 Jul 2005, Bob Proulx wrote:
> Dax Kelson wrote:
> > Bob Proulx wrote:
> > > I am thinking that the most portable way would be to actually chgrp
> > > and chown something and create the group and user if it fails.
> >
> > Ugly. When I first started doing the getent checks, I examined many
> > different UNIX flavors from the open source BSDs, to Solaris, HP-UX and
> > several Linux distros going back to 1998. They all had getent. That is
> > portable enough for me.
>
> HP-UX does not have getent. You must have installed it yourself. I
> don't know about the other systems. As near as I can tell getent is a
> GNU glibc'ism. Since HP-UX is one of my primary platforms and it does
> not have getent I can't use it there. That prompted my comment about
> chown.
getent has been standard on Solaris for years, which is I believe where
Linux initially modeled it from. Some of the BSDs have now acquired it as
well....
later,
chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]