分类:
2008-12-01 09:41:02
$ pfexec domainname eri.PRC.Sun.COM
$ pfexec domainname > /etc/defaultdomain
$ pfexec cp /etc/nsswitch.nis /etc/nsswitch.conf
$ pfexec vi /etc/hosts
add the following line to the end of the file "129.158.215.10 mf-cbjs05-02-215"
$ pfexec ypinit -c
add mf-cbjs05-02-215
$ svcadm enable nis/client
- Now, you should be able to verify if NIS is working on your system by doing something like
$ ypwhich
or
$ ypcat -k passwd -> should return a whole bunch of NIS user names within your domain.
or
$ cd /net/jdsbjserv
or
$ ls /ws (need to execute "svcadm restart svc:/system/filesystem/autofs:default" first)
to see automounted folders.
参考: