Update NIS+ data

Hi,

We are running NIS+ in our UNIX enviroment at work. I am now trying to add and update information in the passwd_org.dir file, but I'm not quite there yet...

If you type

niscat -o '[name=adam77],passwd.org_dir'

You can see all the fields you can modify..

Is there a way to update the information in the passwd_org.dir file for all the users in the database? What I want is to add som text in the 'gcos' table, the field where you can type some info about the user.

I can list all the users with

niscat passwd.org_dir| cut -d: -f1,5

, and then do some magic with 'sed', like so:

 niscat passwd.org_dir|cut -d: -f5 |sed 's/^/BK\/C\/\/DJ\/\+/g'

to add the desired text in front of all the rows. But how do I apply the changes back to NIS?

Can you add variables in to the 'nistbladm' command?

Thank you!