1833780 Members
2258 Online
110063 Solutions
New Discussion

Re: NIS+ group add

 
SOLVED
Go to solution
Vishu
Trusted Contributor

NIS+ group add

HI,

I have NIS+ installed in my HP-UX 11.23 box. I have to add one group(2291:Netadm) in the NIS+ group tables. Can anyone provide me the procedure to do this.

Thanks
vishu
8 REPLIES 8
Md. Minhaz Khan
Super Advisor

Re: NIS+ group add

Dear Vishu

You can try following commands to update NIS maps:

#/var/yp/ypmake


Thanks
Minhaz
Md. Minhaz Khan
Super Advisor

Re: NIS+ group add

Sorry i my previous reply not consistent with the posted question.Please ignore my previous posted reply.

Thanks
Minhaz
Steven E. Protter
Exalted Contributor

Re: NIS+ group add

Shalom,

Every time you change a user, reset the password or add a group, ypmake must be run to get this configuration out to the NIS slave servers.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vishu
Trusted Contributor

Re: NIS+ group add

Guys,

I have NIS+, not NIS. As i know, we have different command sets to use in NIS+. Also, i am confused in one things as :-

1. I am going to add one group to the server.
2. As after group addition, i will have to update the NIS+ table. will it update all the groups on the /etc/group to NIS+ group table or it will append only the change i.e. new group added, to the NIS+ group table.

As i have lots of difference in my /etc/group and NIS+ group table. some groups which exists in NIS+ group table do not exists in /etc/group file. So, please suggest on this and provide the procedure to do this on NIS+.

Thanks
Vishu
Steven Schweda
Honored Contributor

Re: NIS+ group add

I know only about (plain) NIS, not NIS+,
but, ...

> [...] will it update all the groups on the
> /etc/group to NIS+ group table [...]

NIS (and, I assume, NIS+) will not change
any /etc/group files. (Or /etc/passwd files,
or any other such files.) NIS[+] maintains
its own data base, and NIS[+] client systems
can get data from it. Any system can get
data from its own /etc/XXXX files, too.
/etc/nsswitch.conf should say who looks for
what, where, and when.

In NIS, one makes changes to the master
/etc/XXXX (or similar) file, and does a
"ypmake" to propagate the new info into the
NIS data base (and to "yppush" it all out to
any slave servers).

I don't know where NIS+ gets its input, but,
knowing nothing, "nispopulate" seems to me to
be the closest NIS+ thing to "ypmake".

"man nis+" should say something.

http://docs.hp.com/en/B2355-60103/nis+.1.html
Vishu
Trusted Contributor

Re: NIS+ group add

Hi Steven,

Thanks for your reply. But my question was that if i make any chages to /etc/group, and then populate it to NIS+, will only the change will be populated to NIS+ or it will recreate or overwrite the complete NIS+ group table.

Thanks
Steven Schweda
Honored Contributor
Solution

Re: NIS+ group add

> [...] if i make any chages [...]

I know nothing, but "man nisaddent" says:

[...]
Options

-a

Add the file or map to the NIS+ table without deleting any existing entries. This option is the
default. Note that this mode only propagates additions and modifications, not deletions.

[...]
-r

Replace the file or map in the existing NIS+ table by first deleting any existing entries, and
then add the entries from the source (/etc files, or NIS+ maps). This option has the same
effect as the -m option. The use of this option is strongly discouraged due to its adverse
impact on performance, unless there are a large number of changes.
[...]

nispopulate seems to have a similar default.
Vishu
Trusted Contributor

Re: NIS+ group add

Thanks Steven,

This is really a helpful information. It clears my confusion.

so, closing this thread.


Thanks again.