Re: adding users...

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

 



So, let me summarize what I have learned.

I can check to see if the user is in existance using getent passwd
and then add it as needed using useradd. But now if I put them in a script the package will not require them, enter the HP-UX issue.

 [root@testserver redhat]# rpm -qp  /usr/src/redhat/RPMS/i386/faux-0-1.i386.rpm --requires
 /bin/sh
 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
 rpmlib(CompressedFileNames) <= 3.0.4-1

 [root@testserver redhat]# rpm -q --whatprovides useradd
 no package provides useradd
 [root@testserver redhat]# rpm -q --whatprovides /usr/sbin/useradd
 shadow-utils-4.0.3-23.08

This now begs the question. How does one require useradd/getent without naming the full path or package name?


On Fri, 22 Jul 2005, Chris Ricker wrote:

On Fri, 22 Jul 2005, Bob Proulx wrote:

Dax Kelson wrote:

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....

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited.


[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