09-24-2013
NIS:
Network Information Service
Quote:
A NIS/YP system maintains and distributes a central directory of user and group information, hostnames, e-mail aliases and other text-based tables of information in a computer network. For example, in a common UNIX environment, the list of users for identification is placed in /etc/passwd, and secret authentication hashes in /etc/shadow. NIS adds another “global” user list which is used for identifying users on any client of the NIS domain.
what is the difference from just doing it 1 by 1?
You can build script that adds all 20 users, and then copy/execute the script on all 50 servers using ssh. This will reduce your effort and eliminate the possibility of typos causing certain servers to have different setups.
But again if the users need to be kept in sync form this date forward NIS/YP is the preferred solution.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have 85 Unix servers & I need to add single user ID on multiple servers at same time
Can anyone help in this?
I have written one script for single servers.same I need to user for multiple servers
#!/bin/sh
echo Enter user login ID
read loginID
echo Enter Group ID
read GroupID
... (6 Replies)
Discussion started by: sandeep_pan
6 Replies
2. Shell Programming and Scripting
Hi all, working on script to create a user acct on all our servers.
for i in `cat $host_file`; do
ssh $i /usr/bin/sudo /usr/bin/mkuser id='bpadm' gecos='NetBackup Admin' 2>&1 >> $log
done
error i get is: 3004-692 Error changing "id" to "bpadm" : Value is invalid.
I have tried this in... (1 Reply)
Discussion started by: dnidiffer
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
When most of the server applications get installed, they create their own user. I believe this is to not use the "root" account. For example, Apache when installed creates a user called "apache". And the directories which it uses are all owned by this user. This seems to be the... (2 Replies)
Discussion started by: srikanths
2 Replies
4. Solaris
HI,
1.I want to add multiple users at a same time. How to achive this , since useradd will add only one user at a time,.
2.Also let me know how to install a software in a group of machines where the machines are not configured as zones (1 Reply)
Discussion started by: rogerben
1 Replies
5. Shell Programming and Scripting
Anyone has a script or something that can do this? I have a list of about 500 users and I need to add them to an AIX box. The profiles should have "Full Name" and "User Name". (2 Replies)
Discussion started by: bbbngowc
2 Replies
6. Shell Programming and Scripting
Hi
I have one file placed at one server whose sample as follows:
57272 28
56767 0
57575 4
58888 6
53030 26
54242 0
56060 0
And another file at different server whose sample data as follows:
57272 22
56767 0
57575 1
58888 2
53030 13 (9 Replies)
Discussion started by: poweroflinux
9 Replies
7. Shell Programming and Scripting
I wants to create 3 users and set password for the users in 400 servers. I can run this script without error. If wants to set the password in the same command it is not working. Like that i have to create 3 users
#!/usr/bin/ksh
for server in `cat /tmp/servers`
do
echo "servername =... (5 Replies)
Discussion started by: G0kulakrishnan
5 Replies
8. AIX
Hi experts,
I am an AIX/Unix admin in my company. I have been asked by one user to distribute .profile from one server to all other servers in the network. This is what she has asked me:
"Is there a way for me to save and use one .profile that I have personalized with aliases for all my... (4 Replies)
Discussion started by: uzair_rock
4 Replies
9. Shell Programming and Scripting
Hi Experts,
I am new to scripting. We have around 400 Linux servers in our environment. I want to add a new user to a perticular group on all the servers using SSH.
Requirements:
1) Need to take the server names from a text file.
2) Login into each server and check whether perticular... (1 Reply)
Discussion started by: Satya1983
1 Replies
10. Shell Programming and Scripting
Hi Team,
Hope you are doing good.I am new to scripting.I have a requirement of deleting around 10 users in 100 servers.It is very time consuming by logging into each servers and delete the user.Here I have redhat 6 ,Suse linux 10&11 environment servers.
In one set of servers I have... (5 Replies)
Discussion started by: muraliinfy04
5 Replies
YPSET(8) BSD System Manager's Manual YPSET(8)
NAME
ypset -- tell ypbind(8) which NIS server process to use
SYNOPSIS
ypset [-h host] [-d domain] server
DESCRIPTION
ypset tells the ypbind(8) process on the current machine which NIS server process to communicate with. If server is down or is not running a
NIS server process, it is not discovered until a NIS client process attempts to access a NIS map, at which time ypbind(8) tests the binding
and takes appropriate action.
ypset is most useful for binding a NIS client that is not on the same broadcast network as the closest NIS server, but can also be used for
debugging a local network's NIS configuration, testing specific NIS client programs, or binding to a specific server when there are many
servers on the local network supplying NIS maps.
The options are as follows:
-h host
Set the NIS binding on host instead of the local machine.
-d domain
Use the NIS domain domain instead of the default domain as returned by domainname(1).
SEE ALSO
domainname(1), ypcat(1), ypmatch(1), ypwhich(1), nis(8), ypbind(8), yppoll(8)
AUTHORS
Theo de Raadt
BSD
February 26, 2005 BSD