All the steps you took are correct but not very good.
You'd better prepare the source files for NIS map first:
1. Create a directory DIR. Copy all neccessory files(hosts,shadow,...)
except passwd from /etc to directory DIR. Create another directory
PWDIR, copy /etc/passwd to PWDIR and edit PWDIR/passwd to remove the
line about root(It's very important to remove the root record in NIS
map).
2. Edit /var/yp/Makefile. Change DIR,PWDIR and DOM value.
3. Run 'ypinit -m' to Set Up the Master Server.
For more in detail please reference to NIS Set Up and Configuration in
http://docs.sun.com/.
NIS has a very big problem is its security. All users in your network
can read the joined files (passwd.byname and passwd.byuid) and the
passwords will tranport through the network in plain text. If you need
more high security, please migrant your system to NIS+.
-----Original Message-----
Sent: Monday, January 03, 2000 7:37 PM
To: Yang Wen Yong
Subject: Re: NIS security && shadow
What I want to do is , preventing users to see the crypted passwords by
using ypcat..
1. Install system , with shadow enabled.
2. Copy /etc/passwd to /var/yp
3. Install NIS (make)
are these steps enough to hide crypted passwords..
----- Original Message -----
Newsgroups: comp.unix.solaris
Sent: Monday, January 03, 2000 12:34 PM
Subject: Re: NIS security && shadow
> After you migrant your name service from Local file system to NIS, all
> information will store in NIS map files, and the shadow file will have
> no use again. In fact, as you know, the system will use the joined
files
> (passwd.byname and passwd.byuid ) to do athentication but not
> /etc/passwd and /etc/shadow. You don't need to copy /etc/shadow to
> /var/yp directory. Installing shadow is important before you migrant
to
> NIS.
> > Hi,
> > We are using NIS on our unix systems.
> > I use pwconv to enable shadow.
> > Then copy the shadow file to the NIS dir.
> > Then I made "make".
> > Now noone can reach the to shadow as "-rw-------"
> > But anyone can reach the joined file (passwd && shadow)
> > by "ypcat -t passwd.byname".
> > So installing shadow isn't important.
> > Or am i doing a wrong think?
> > ----------------
> > Serkan AK?IN