SUMMARY: How to add a user to a NIS+ group

From: Dave Martini 1 <martini1_at_llnl.gov>
Date: Tue May 22 2007 - 12:52:38 EDT
No matter what syntax I gave the nistbladm command I couldn't add a user 
to a group.
A few people suggested to dump the contents of the group table to an 
ascii file then edit it and
dump it back. I have not tried it yet but this should work.

# /usr/lib/nis/nisaddent -d group > /tmp/group
# vi /tmp/group  <<<<<<<<<<<<<<<< Add the new user to the appropriate 
group and save the file.
# /usr/lib/nis/nisaddent -rvf /tmp/group group

Below is my original question

I'm trying to add a user to a nis+ user group. There are already 20 
users in this group. Is there an easy way to do it?

I tried typing  every
user who is already in the group in again.

nistbladm -e members=user1,user2,user3,user4,user5,user6 
'[name=hydrogeo]'group.org_dir

When I tried the above the line had to many characters and the terminal 
started beeping. I tried the command with a \ at the end of each line
for line continuation but it returns an error

can't parse column values: Missing or malformed attribute.

I can't use the solstice adminsuite gui because some of the usernames 
are more than 8 characters in length and I get an error to fix those entries
when I try to add another user.

Is there a way to add a users to a nis+ group using nistbladm or some 
other command and just specify the actual user I want to add to the 
group and not
everyone who is already in the group?

Thank You.
Dave Martini
LLNL
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue May 22 12:53:03 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:05 EST