home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!exodus.Eng.Sun.COM!pepper.Eng.Sun.COM!cmcmanis
- From: cmcmanis@pepper.Eng.Sun.COM (Chuck McManis)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: Solaris 2.x: resistance to it?
- Date: 18 Dec 1992 23:59:49 GMT
- Organization: Sun
- Lines: 46
- Message-ID: <lj4pflINN2rl@exodus.Eng.Sun.COM>
- References: <1992Dec1.082827.9337@fwi.uva.nl> <1992Dec1.142031.5698@dragon.acadiau.ca> <BynwCn.C7o@digiboard.digibd.com>
- NNTP-Posting-Host: pepper
-
- In article <BynwCn.C7o@digiboard.digibd.com> (Rob Healey) writes:
- > All other YP maps should be a straight forward conversion of:
- >
- > nisaddent -r -f yp-file nis-object i.e.
- >
- > nisaddent -r -f hosts hosts - Adds host entrys to the host object.
-
- A couple of points, you can construct a "fake" shadow file, and
- don't use '-r' a lot.
-
- Point 1:
- You can make a "psuedo" shadow file out of the 4.x YP password file
- using the command:
-
- awk -F: '{printf("%s:%s:6445::::::\n",$1,$2);}' passwd > shadow
-
- Then you can merge password changes with:
-
- nisaddent -f shadow -m shadow
-
- Point 2:
-
- The command 'nisaddent -r -f passwd passwd' and the command
- 'nisaddent -m -f passwd passwd' will have the exact same overall
- effect on the pasword table, it will now match the contents of the
- file, *however* the way they work is vastly different and can
- whomp the replication protocol.
-
- In the first case, the operation is :
- 1) foreach entry Delete it;
- 2) add new entry "x"
-
- For a 2000 record password file with 5 changes that is 2000 "deltas"
-
- In the second case the operation is:
- 1) If it exists in the file but not the table "add it"
- 2) If it is different in the table "modify it"
- 3) If it isn't in the file, "delete it"
-
- For a 2000 record password file with 5 changes that is 5 "deltas".
-
-
- --
- --Chuck McManis Mr. NIS+ Sunsoft
- uucp: {anywhere}!sun!cmcmanis BIX: <none> Internet: cmcmanis@Eng.Sun.COM
- These opinions are my own and no one elses, but you knew that didn't you.
-