Sponsored Content
Full Discussion: NIS problems in Sun 5.10
Operating Systems Solaris NIS problems in Sun 5.10 Post 302269359 by Keepcase on Wednesday 17th of December 2008 12:55:27 PM
Old 12-17-2008
Thanks for the reply, I'll try to clarify.

ypbind is running on my client (I had performed svcadm nis/client and it is enabled when I double-checked with svcs -a |grep nis)

on my server, I have both nis/client and nis/server running
I have also pushed the data (cd /var/yp ; make)
=======================
now on my server, (host1) ypcat passwd gives me the correct changes,etc and ypwhich points to the correct master server (host1)

but on my client, ypcat passwd gives me "RPC failure on yp operation"
when I do ypwhich, it gives me the correct master server (host1)

But what's wierd is when I perform ypmatch username passwd, I get the correct information...


I want to be able to use ypcat on my client which currently is not working

any solutions or advice?

EDIT: (added some more info)

This is just an observation, but this might give insight to my problem?

when I perform ypcat hosts on my master-server

my output is
ip host1
ip client
ip host1

I have 2 entries of host1, I've re-configured the master server (ypinit -m) countless times but I keep getting 2 entries for host1

if I cat /etc/hosts I only have:

ip host1
ip client

keep in mind my Makefile has DIR = /etc (default)
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

CD mount problems on Sun E220R

I have a problem mounting a particular CD on both my E220R servers, the same CD mounts on all my unlta10 servers. I tried mounting with volmgt started and manually after stopping volmgt. but neither worked. These servers are able to mount every other Cd inserted in them. The mount command line i... (6 Replies)
Discussion started by: lealyz
6 Replies

2. UNIX for Dummies Questions & Answers

Help...Bad NIS problems

I changed the root password on the NIS master, now I cant login to any of the NIS clients. Or even the NIS master using normal logons, any ideas what might be wrong or how I can solve this? Im running solaris 2.6 btw. (1 Reply)
Discussion started by: blakmk
1 Replies

3. Solaris

sun nis+

Hi, is there any way to create nis+ user without creating local user? (0 Replies)
Discussion started by: shivanshu.aryan
0 Replies

4. Solaris

Unable to Log In to Sun NIS server

Greetings, I have recently inherited 3 sun servers from a shop that my parent company closed. One of these servers is an old Ultra 1 running SunOS 5.6 that acts as a NIS server for the other two servers. This NIS server seems to boot OK and function properly as a NIS server. However, I can't... (6 Replies)
Discussion started by: SevenFortyOne
6 Replies

5. Solaris

How to configure NIS in sun 10

Hi...., I'm having two intel system.both the system i installed sun sol 10.now i wan't to configure NIS .Pls tell me step by step configuration for server and client.pls Help me any body......... :mad: Rgds, Jay (4 Replies)
Discussion started by: rjay.com
4 Replies

6. UNIX for Advanced & Expert Users

NIS master / slave problems

Our NIS master server went down. We have since fixed it and brought it back up. However all of are machines still point to the slave server when looking at it with ypwhich. My question is how do i point the servers back to the master. Frank (2 Replies)
Discussion started by: frankkahle
2 Replies

7. UNIX for Advanced & Expert Users

NIS+ problems

We are lumbered with using NIS+, and I have some questions regarding its use. 1 in a senario with 1 master 3 slaves, if the slaves all die the master will also fail ? There is some thing I read which states that NIS+ needs n/2 to function can anyone confirm / deny this ? Also in the event... (0 Replies)
Discussion started by: wjones
0 Replies

8. Solaris

Sun Blade 100 cdrom problems...

FYI noob to here and sun blades... I have a sun blade 100 and I can't get the cdrom to work. if i try using vold that doesn't seem to work either...maybe i'm not using it correctly. Upon boot you can open/close the cdrom and it runs but after i'm logged in it won't open and i can't access it... (2 Replies)
Discussion started by: shaun138
2 Replies

9. HP-UX

Solved -- Problems with NIS Password Expiration...

HI. I was wondering if anyone can assist me in this. I have an HP-UX 11.31 server at work which keeps expiring my NIS password. I cannot log in unless I use root access. It worked before and I think some of the settings changed since then. My boss has told me that since we're taking some... (1 Reply)
Discussion started by: zixzix01
1 Replies

10. Solaris

Sun Ultra 30 boot problems

Hi all, I've just replaced the eprom battery on my Sun Ultra-30 and having boot issues. For some reason its trying to boot off the network instead of the DISK1. Howe can I change it so the open boot does not default to the boot device: NET Thanks, Rob (3 Replies)
Discussion started by: robbo007
3 Replies
nisserver(1M)						  System Administration Commands					     nisserver(1M)

NAME
nisserver - set up NIS+ servers SYNOPSIS
/usr/lib/nis/nisserver -r [-x] [-f] [-v] [-Y] [-d NIS+_domain] [-g NIS+_groupname] [-l network_passwd] /usr/lib/nis/nisserver -M [-x] [-f] [-v] [-Y] -d NIS+_domain [-g NIS+_groupname] [-h NIS+_server_host] /usr/lib/nis/nisserver -R [-x] [-f] [-v] [-Y] [-d NIS+_domain] [-h NIS+_server_host] DESCRIPTION
The nisserver shell script can be used to set up a root master, non-root master, and replica NIS+ server with level 2 security (DES). If other authentication mechanisms are configured with nisauthconf(1M), nisserver will set up a NIS+ server using those mechanisms. nisauth- conf(1M) should be used before nisserver. When setting up a new domain, this script creates the NIS+ directories (including groups_dir and org_dir) and system table objects for the domain specified. It does not populate the tables. nispopulate(1M) must be used to populate the tables. OPTIONS
-d NIS+_domain Specifies the name for the NIS+ domain. The default is your local domain. -f Forces the NIS+ server setup without prompting for confirmation. -g NIS+_groupname Specifies the NIS+ group name for the new domain. This option is not valid with -R option. The default group is admin.<domain>. -h NIS+_server_host Specifies the hostname for the NIS+ server. It must be a valid host in the local domain. Use a fully qualified host- name (for example, hostx.xyz.sun.com.) to specify a host outside of your local domain. This option is only used for setting up non-root master or replica servers. The default for non-root master server setup is to use the same list of servers as the parent domain. The default for replica server setup is the local hostname. -l network_password Specifies the network password with which to create the credentials for the root master server. This option is only used for master root server setup (-r option). If this option is not specified, the script prompts you for the login password. -M Sets up the specified host as a master server. Make sure that rpc.nisd(1M) is running on the new master server before this command is executed. -R Sets up the specified host as a replica server. Make sure that rpc.nisd is running on the new replica server. -r Sets up the server as a root master server. Use the -R option to set up a root replica server. -v Runs the script in verbose mode. -x Turns the echo mode on. The script just prints the commands that it would have executed. Note that the commands are not actually executed. The default is off. -Y Sets up a NIS+ server with NIS-compatibility mode. The default is to set up the server without NIS-compatibility mode. USAGE
Use the first synopsis of the command (-r) to set up a root master server. To run the command, you must be logged in as super-user on the server machine. Use the second synopsis of the command (-M) to set up a non-root master server for the specified domain. To run the command, you must be logged in as a NIS+ principal on a NIS+ machine and have write permission to the parent directory of the domain that you are setting up. The new non-root master server machine must already be an NIS+ client (see nisclient(1M)) and have the rpc.nisd(1M) daemon running. Use the third synopsis of the command (-R) to set up a replica server for both root and non-root domains. To run the command, you must be logged in as a NIS+ principal on a NIS+ machine and have write permission to the parent directory of the domain that you are replicating. The new non-root replica server machine must already be an NIS+ client and have the rpc.nisd daemon running. EXAMPLES
Example 1 Setting up Servers To set up a root master server for domain sun.com.: root_server# /usr/lib/nis/nisserver -r -d sun.com. For the following examples make sure that the new servers are NIS+ clients and that rpc.nisd is running on these hosts before executing nisserver. To set up a replica server for the sun.com. domain on host sunreplica: root_server# /usr/lib/nis/nisserver -R -d sun.com. -h sunrep To set up a non-root master server for domain xyz.sun.com. on host sunxyz with the NIS+ groupname as admin-mgr.xyz.sun.com.: root_server# /usr/lib/nis/nisserver -M -d xyz.sun.com. -h sunxyz -g admin-mgr.xyz.sun.com. To set up a non-root replica server for domain xyz.sun.com. on host sunabc: sunxyz# /usr/lib/nis/nisserver -R -d xyz.sun.com. -h sunabc ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
NIS+(1), nisgrpadm(1), nismkdir(1), nisaddcred(1M), nisauthconf(1M), nisclient(1M), nisinit(1M), nispopulate(1M), nisprefadm(1M), nis- setup(1M), rpc.nisd(1M), attributes(5) NOTES
NIS+ might not be supported in future releases of the Solaris Operating system. Tools to aid the migration from NIS+ to LDAP are available in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html. SunOS 5.11 13 Dec 2001 nisserver(1M)
All times are GMT -4. The time now is 11:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy