- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with NIS slave
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2008 06:50 AM
09-16-2008 06:50 AM
problem with NIS slave
I am facing a problem with NIS slave server.
I used to login to NIS slave server with a normal user account and then sudo su - to root.
Now suddenly i am not able to login to NIS slave with normal login.
I am able to login to other NIS clients and NIS master using normal user account.
When i checked with ypwhich -m i found that NIS slave was using itself as reference for NIS maps.
I planned to copy the maps again from the master server to slave server.
1. I stopped nis.master and nis.client on SLAVE
2. reinitialised SLAVE to act as a NIS slave and copied the maps from master to slave using ypinit -s
3. then i did ypinit -c
it gave me error
ypinit -c
Usage: ypinit -m [DOM=domain_name]
ypinit -s master_server [DOM=domain_name]
-m: make this machine a master Network Information Service server
-s: make this machine a slave Network Information Service server; "master_server" is the
existing master NIS server from which the databases are copied.
"domain_name" is the NIS domain name to initialize; if not supplied, DOM
defaults to the name returned by domainname(1).
WHY ISN"T YPINIT -C NOT WORKING.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2008 12:39 AM
09-17-2008 12:39 AM
Re: problem with NIS slave
could you please tell us which version of hp-ux you're using ? (uname -a)
regards,
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2008 01:12 AM
09-17-2008 01:12 AM
Re: problem with NIS slave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2008 01:42 AM
09-17-2008 01:42 AM
Re: problem with NIS slave
ypinit -c is not a valid the way you are using.
according to the man page ypinit -c lets you use a list of chosen NIS servers.
The exact syntax to make it work is in the man page. You need to submit the command a list.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2008 02:06 AM
09-17-2008 02:06 AM
Re: problem with NIS slave
========================
-c Configures the local host as a NIS client, so
that the NIS client will attempt to bind to a
particular NIS server. Invocation of ypinit
with a -c option prompts the user to
construct a list of NIS servers, in the order
of preference, to which the client will try
to bind. This list of NIS servers is stored
in the file
/var/yp/binding/
order for ypbind to use this list of NIS
servers, ypbind should not be invoked with -
broadcast option. (see ypbind(1M) in
ypserv(1M)). If it is so desired that it is
not necessary for a NIS client to bind to a
NIS server in a particular list, the ypinit
-c installation mechanism could be ignored.
===============================
i cannot find the directory /var/yp/binding/
is there way to give the NIS server names to ypinit -c on command line itself rather than ypbind referring the file /var/yp/binding/
Also it would help me a lot if anybody can provide me a detailed step procedure to create a NIS slave and also make it work like a NIS client to itself
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2008 02:39 AM
09-17-2008 02:39 AM
Re: problem with NIS slave
the ypbind process has started.
currently the NIS slave is referring the maps on NIS master as indicated by ypwhich -m
now i am able to login to NIS slave using normal login account after copying the maps from master to slave.
Thanks for your comments