Friday, October 2, 2009

Changing domain and NIS on SUN Solaris clients

  1. Edit /etc/defaultdomain
    Set the new domain used when booting up :
    mydomain.intra

  2. Set current domain name
    > domainname mydomain.intra

  3. Add your NIS servers to /etc/hosts

  4. Set your client as a NIS client :
    > /usr/sbin/ypinit -c
    Add your NIS servers here (eg : nisserv1.mydomain.intra).

  5. Bind your client to your NIS server :
    > ypbind

  6. Check your NIS server binding :
    > ypwhich
    nisserv1.mydomain.intra

  7. Reboot

Important Be sure you did 1. ok, otherwise you won't be able to boot anymore (boot -s for single user mode, and then correct your /etc/defaultdomain file, then reboot again)

No comments:

Post a Comment