Re: adding users...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux