10 More Discussions You Might Find Interesting
1. Solaris
I'd like to share some experiences and what I found for NIS migration from Solaris 8 NIS to Linux platform.
I'm not an expert for both platforms, it's just when I tested both systems and found something really tricky. That might takes a lot of time for you to find the root cause. So, I think I can... (11 Replies)
Discussion started by: bestard
11 Replies
2. Homework & Coursework Questions
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies
3. Shell Programming and Scripting
I'm creating a scrip for auditing our AIX box's to ensure that they are built according to our system standards. I'm not sure on the logic for checking to see if the NIS and NIS+ services are disabled. any idea's? (2 Replies)
Discussion started by: sport
2 Replies
4. UNIX for Dummies Questions & Answers
Hello i have some account already defined on NIS server. I would like to use this account on my machine.
What do i have to do ? Only create the home directory then use the account ??
If the user defined is using the korn shell, and i want to use bash, how can i change it ?? (2 Replies)
Discussion started by: dolphin06
2 Replies
5. Solaris
Hi, all.
I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client,
1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01
2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies
6. Solaris
hai any body send me the replay please.
is it necessary to configure NFS , before configuring NIS on solaris9 or solaris10. (1 Reply)
Discussion started by: nag.mi2000
1 Replies
7. UNIX for Advanced & Expert Users
We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave.
We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation.
However, no matter what i do, the SUSE machines will not talk to the NIS Servers.
If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following,
"NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies
9. IP Networking
Hello together.
Is there someone who is able to explain me the differences between NIS and NIS+.
thanks in advance
joerg (2 Replies)
Discussion started by: joerg
2 Replies
10. UNIX for Advanced & Expert Users
Hello all,
I'm not sure if this is the right forum, but I would like to know if Redhat running NIS ( not NIS +) would have conflict with Solaris running NIS+. Currently I am running NIS+ on Solaris but will be adding RedHat to the network. I seem to be unable to find and information regarding... (2 Replies)
Discussion started by: larry
2 Replies
ypfiles(4) Kernel Interfaces Manual ypfiles(4)
NAME
ypfiles - Network Information Service (NIS) database and directory structure
DESCRIPTION
The NIS database lookup service uses a database of dbm/ndbm, btree, or hash files in the /var/yp directory hierarchy. A dbm/ndbm database
consists of two files created by calls to the dbminit(3) function. One has the filename extension .pag and the other has the filename
extension .dir. For instance, the database named hosts.byname, is implemented by the pair of files hosts.byname.pag and hosts.byname.dir.
A btree or hash database consists of a single file created by calls to the dbopen(3) function. A btree file has the filename extension
.btree; a hash file has the extension .hash.
A dbm/ndbm database served by NIS is called an NIS map. A NIS domain is a named set of NIS maps. Each NIS domain is implemented as a sub-
directory of /var/yp containing the maps. The number of NIS domains that can exist is unlimited. Each domain can contain any number of
maps.
The NIS maps are not required by the NIS lookup service, although they may be required for the normal operation of other parts of the sys-
tem. The NIS lookup service serves all maps. If the map exists in a given domain and a client asks about it, NIS will serve it. There is,
however, a set of default maps that the NIS service serves. The files representing these maps are listed in this description under Files.
For a map to be accessible consistently, it must exist on all NIS servers that serve the domain. To provide data consistency between the
replicated maps, an entry to execute the ypxfr command periodically should be made in the /var/spool/cron/crontab/root file on each slave
server. More information on this topic is in ypxfr(8). An entry in the /var/spool/cron/crontab/root file must not exist, either on a NIS
master server or on a pure NIS client machine.
The NIS maps should contain two distinguished key-value pairs. The first is the key YP_LAST_MODIFIED, whose value is a 10-character ASCII
order number. The order number should be the UNIX time in seconds when the map was built. The second key is YP_MASTER_NAME, with the name
of the NIS master server as a value. The makedbm(8) command generates both key-value pairs automatically. A map that does not contain
both key-value pairs can be served by the NIS, but the ypserv process will not be able to return values for ``Get order number'' or ``Get
master name'' requests. In addition, the values of these two keys are used by ypxfr(8) when it transfers a map from a master NIS server to
a slave.
Before they can be properly accessed, the NIS maps must be initially set up for both masters and slaves by using the ypsetup(8) function.
Further, NIS maps must be generated and modified only at the master server location. Copies of the master server NIS maps can then be
transferred to the slave servers using the ypxfr(8) function. If ypxfr is unable to determine a map's location, or if it is unable to
determine whether the local copy is more recent than the master copy, extra command line switches must be set when it is executed.
After the server databases are set up, the contents of some maps may change. In general, some ASCII source version of the database exists
on the master. This version should be changed with a standard text editor. The update is incorporated into the NIS map and is propagated
from the master to the slaves by running /var/yp/Makefile. All maps must have entries in /var/yp/Makefile. If an NIS map is added, the
/var/yp/Makefile must be edited to support the new map. The makefile uses makedbm(8) to generate the NIS map on the master, and yppush(8)
to propagate the changed map to the slaves. The yppush(8) command is a client of the map ypservers, which lists all of the NIS servers.
FILES
/var/yp/src/passwd
/var/yp/src/group
/var/yp/src/hosts
/var/yp/src/networks
/var/yp/src/services
/var/yp/src/protocols
/var/yp/src/netgroup
RELATED INFORMATION
Commands: makedbm(8), rpcinfo(8), ypmake(8), yppoll(8), yppush(8), ypserv(8), ypsetup(8), ypxfr(8).
Functions: btree(3), dbm(3), hash(3), ndbm(3). delim off
ypfiles(4)