Chinaunix首页 | 论坛 | 博客
  • 博客访问: 146052
  • 博文数量: 24
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 291
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-01 09:36
文章分类

全部博文(24)

文章存档

2010年(4)

2009年(13)

2008年(7)

我的朋友

分类:

2008-12-01 09:41:02

First get an ip address by DHCP.

    $ 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.

 

参考: 

阅读(681) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~