How to Add user in NIS group in HPUX

1. Login to the NIS Master
2. Determine whether user id is existed.

# ypcat passwd | grep <userid> 
# id <userid>

3. Determine the group.

# ypcat group | grep <groupname>

4. Determine the location of the NIS group files.

# ps -ef | grep yp (The group files are with the passwd file)

5. Backup the group file.

# cp group <groupbackupname> e.g cp group group.xyz

6. vi group
7. Add user into group.
8. ypmake only group.

# cd /var/yp

9. ‘ypmake group’ or ‘make group’
10. Repeat id <userid>, to confirm whether the user has been successfully added into the group

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top