How to create users in NIS


 
Thread Tools Search this Thread
Operating Systems Solaris How to create users in NIS
# 1  
Old 10-16-2008
How to create users in NIS

How to create users in NIS server in solaris

Thanks in Advance
# 2  
Old 10-16-2008
Example:
nisaddcred -p <uid> -P <username>.<domainname> local
nisaddcred -p unix.<uid>@<domainname> -P <username>.<domainname> des
# 3  
Old 10-16-2008
This nisaddcred command is for NIS+.

If your mean the good old NIS (yellow pages), user accounts are created by populating the NIS password file and running make while being in the /var/yp directory.
# 4  
Old 10-17-2008
Yes, you're right, its for NIS+.
Can show us an example on the command-line then? Smilie
# 5  
Old 10-18-2008
Sure.
Assuming:
- you use the default configuration with which the regular files are used as source
- the NIS server is also the NFS home directory server
Creating a new NIS user would be done with something like this:
Code:
useradd -b /export/home -c "silly comment" -s /bin/ksh -m incredible
usermod -d /home/incredible incredible
passwd incredible
cd /var/yp
/usr/ccs/bin/make

# 6  
Old 11-11-2008
NIS useradd

Hi jilliagre

I have added a user called "test"in NIS Server and rebuilt the maps too(By running the make passwd command).But while trying to login from a client,i am unable to. Should i need to do anything more.

The ypcat passwd command in the client displays the user "test".

Really baffled...Please help.
efunds
# 7  
Old 11-11-2008
jilliagre - trying not to step on your toes, but to get answer to efunds.

Does the client you are attempting to connect to use nis groups as well?
Check for the instance of any +@<group> at the end of the passwd file on the local client.
If there is an entry, +@staff, for instance, then the user would need to be part of that NIS group as well in order to log in.
If not, change user passwd with the yppasswd or passwd -r nis for the user to ensure the passwd map is up to date.
Would be helpful if you posted the output of the attempted log in to see what error is being presented at login time.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Audio Problem-NIS users

Hai all, I'm rameez rahman working as a Technical assistant. I configured NIS Server in RHEL 6.5 with 40 client PC's.All the clients are using the same os ie RHEL 6.5 64 bit.All the features are working fine except sound ie from client machine if a NIS user logged in he cant access sound.But if... (2 Replies)
Discussion started by: rameez rahman k
2 Replies

2. Shell Programming and Scripting

Bulk NIS Users Password Change

Hi All, I am having Solaris 5.10 acting as NIS. How do i change multiple user password in NIS in a batch. I have predefined users with their passwords to be set: Example: user1 password1 user2 password2 Pls advise. (0 Replies)
Discussion started by: yogajwa
0 Replies

3. Emergency UNIX and Linux Support

NIS created users without a home directory

Hi all, So I have created two Centos machines. One is configured as a NIS master and the second is a NIS cleint. The NIS configs are all working perfectly. I created a user nisuser on NIS Master and I can use it on the client. BUT it doesnt show a home directory . Ive been told there is... (9 Replies)
Discussion started by: Junaid Subhani
9 Replies

4. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

5. 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

6. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

7. Solaris

How can i allow only a group of users in NIS?

Hello experts. I am using Solaris10. How can i allow a group of users, remaining should be deny. Thanx in advance. (9 Replies)
Discussion started by: younus_syed
9 Replies

8. Filesystems, Disks and Memory

nis users

Hi friends how to find the nis users in my servers. i have normal users also. Thanks & Regards Manoj (3 Replies)
Discussion started by: manoj123
3 Replies

9. UNIX for Dummies Questions & Answers

NIS users

How's it going, everyone? A question was posed to me recently, and since I don't know the answer, I was wondering if anyone knew the answer/could point me to a website or book with the answer. The head Network Admin asked me if we were able to keep track of which users log into which boxes via... (1 Reply)
Discussion started by: Jody
1 Replies

10. UNIX for Advanced & Expert Users

NIS users cann't login on AIX and HP

Hey, I've set up a NIS domain with linux as master-server, slave server and clients ... and Linux works fine. To that NIS domain I tried to add a HPUX 11.00 and an AIX 4.3.3 system (till now - there should be more clients in final version). And both systems now have to same problem: I can... (3 Replies)
Discussion started by: mod
3 Replies
Login or Register to Ask a Question