Rohit Bajaj
asked on
what does getent do
HI,
I have a following in a spec of an rpm :
what does getent do. Also how are %{groupname} specified ?
Thanks
I have a following in a spec of an rpm :
%pre
getent group %{groupname} >/dev/null || groupadd -r %{groupname}
getent passwd %{username} >/dev/null || useradd -r -g %{groupname} -s /sbin/nologin %{username}
install -d /var/log/%{name} -o %{username} -g %{groupname} -m 750
exit 0
what does getent do. Also how are %{groupname} specified ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Also what does install do here ?