Sponsored Content
Full Discussion: NIS user creation
Operating Systems Solaris NIS user creation Post 302560199 by Revathi@1 on Thursday 29th of September 2011 06:36:52 AM
Old 09-29-2011
No its not a tool but a utility used in my project. They edit the passwd,group,aliases,auto.home files with this like

$which enis
/local/sbin/enis

$enis passwd

Do you want to check these changes first?[y/N]? -------> press enter to check the changes first.
Press any key to continue? ------------> press any key.
then fill the syntax as per request
usernameSmilieasswd:uid:gid:GCOS:homedir:loginshell


finally save this
:wq!

Do you want to save these changes?[Y/N]? Y

Do you want to "make passwd" [y/N]?

once you press YES here it updates the maps in the master server automatically. This is the scenario which is confusing me a bit so i posted this to take help from seniors like you.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

NIS + adding a new user

I'm setting up NIS+ on Solaris 8 for Intel. None of the books I have explain how to add a new user in the NIS+ envoirnment. Can somebody explain this and are there any url's to get more info. I have populated the nis tables and can do an niscat of the passwd table. There is an nisgrpadd command... (2 Replies)
Discussion started by: txpjl
2 Replies

2. UNIX for Dummies Questions & Answers

Solaris 9 NIS user creation issue

Helloo to all... what is the correct way to assign a password to a new NIS user on a NIS master server? When I the following: useradd -s /bin/bash -d /export/home/username -m username The user get created fine but when I try to assign a password I get: #passwd username... (0 Replies)
Discussion started by: GLJ@USC
0 Replies

3. Shell Programming and Scripting

NIS User UID Change

Hi All, I need to change the UID numbers of many NIS users, is there any command to modify the UID in NIS maps ? ( like usermod) so that their file permissions will be same even with their new UID. If not, how to check all the files owned by particular user in a computer and change the... (1 Reply)
Discussion started by: RAA
1 Replies

4. Solaris

nis user

my qustion is, nis is centralised server.how to login nis user in client system in console (CDE)login (2 Replies)
Discussion started by: tirupathi
2 Replies

5. Red Hat

User creation

Hi Thanks in advance. How to create a user without useradd command ?? (1 Reply)
Discussion started by: krish4linux
1 Replies

6. UNIX for Dummies Questions & Answers

NIS user in local group

I have root access on a linux (RH5.4) server within an NIS setup that I don't control. I have an NIS account that creates directories on my local node that I want to be writable by my local apache account. The NIS account is only a member of the "users" group and the local apache account is... (1 Reply)
Discussion started by: clindseysmith
1 Replies

7. Solaris

create user in NIS+

i want create user in NIS+ with root previligation. Someone please provide full steps. (1 Reply)
Discussion started by: Navkreddy
1 Replies

8. Red Hat

Remove NIS user under RHEL

Hi, I can't delete an NIS user. Does it sound too simple for you? :( Here is the result: nis_server# ypcat passwd | grep heisgone heisgone:xxxxxx:1000:200:He is gone:/home/heisgone:/usr/bin/ksh nis_server# userdel heisgone userdel: error deleting password entry userdel: error deleting... (1 Reply)
Discussion started by: aixlover
1 Replies

9. Solaris

Deleting NIS user Solaris 8

ypcat passwd | grep "user" - shows the user userdel "user" says "user does not exist" What am I doing wrong? (1 Reply)
Discussion started by: psychocandy
1 Replies
YPINIT(8)						    BSD System Manager's Manual 						 YPINIT(8)

NAME
ypinit -- build and install NIS databases SYNOPSIS
ypinit -m [domainname] ypinit -s master_server [domainname] ypinit -u [domainname] DESCRIPTION
The ypinit utility is a script which sets up databases on a Network Information Service (NIS) master or slave server. On a master server, ypinit creates the /var/yp/$DOMAINNAME directory, the /var/yp/ypservers file, and calls /var/yp/Makefile to create and populate an initial set of NIS maps. The maps are created from local source files using the yp_mkdb(8) utility. The utility will prompt the user for a list of servers that support the specified domain; this list is used to populate the ypservers map. On a slave server, ypinit creates the /var/yp/$DOMAINNAME, populates it with copies of the NIS maps from the master. The maps are obtained from the master using the ypxfr(8) utility. The ypinit utility obtains the list of maps to transfer in one of two ways: if the system is configured as an NIS client and is bound to the master server, ypinit is able to use the ypwhich(1) utility to obtain a list of maps exported by the master server. If the system is not configured as a client of the NIS master, ypinit uses a hardcoded list of maps, some of which may or may not actually exist on the master. The system administrator can edit the ypinit script and modify the map list if necessary. Other- wise, individual maps can be transferred manually from the master using ypxfr(8). OPTIONS
The ypinit utility supports the following options: -m [domainname] Set up a master server. By default, ypinit sets up a server for the system default domain. The user can override this default by specifying domainname explicitly. Maps are constructed from scratch using local files as templates using the yp_mkdb(8) utility. -s master_server [domainname] Set up a slave server using master_name as the master. Maps are copied from master_server to the slave using ypxfr(8). By default, ypinit sets up a server for the system default domain. The user can override this default by specifying domainname explicitly. -u [domainname] Update the ypservers map on the master server. When a new slave server is added to a domain, its hostname must be added to the ypservers map so that yppush(8) can propagate updates on the master to all of the slaves. FILES
/etc/bootparams Bootparams source file /etc/ethers Ethers data source file /etc/group Group source file /etc/hosts Hostname/IP address source file /etc/netid RPC netid source file /etc/networks Networks source file /etc/protocols Protocols source file /etc/publickey RPC public key/secret key source file /etc/services Services data source file /etc/shells Shells source file /var/yp/master.passwd Passwd database source file /var/yp/netgroup Netgroup data source file /var/yp/ypservers Ypservers source file (generated by ypinit) SEE ALSO
mknetid(8), revnetgroup(8), yp(8), yp_mkdb(8), yppush(8), ypserv(8), ypxfr(8) HISTORY
This version of ypinit is based on the ypinit script in OpenBSD. It first appeared in FreeBSD 3.0. AUTHORS
The original script was written by Mats O Jansson <moj@stacken.kth.se>. It was modified for FreeBSD by Bill Paul <wpaul@ctr.columbia.edu>. BSD
November 10, 1997 BSD
All times are GMT -4. The time now is 11:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy