SUMMARY: How to add a user to a NIS+ group
- From: Dave Martini 1 <martini1@xxxxxxxx>
- Date: Tue, 22 May 2007 09:52:38 -0700
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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: Solaris 10 Kerberos KDC ignore settings in /etc/krb5/kdc.conf
- Next by Date: Copy many small files
- Previous by thread: Solaris 10 Kerberos KDC ignore settings in /etc/krb5/kdc.conf
- Next by thread: Copy many small files
- Index(es):
Relevant Pages
|
|