Main page
Weblog
Please check the FAQ page first to see if your question has already been answered.
Upload a file, requires a password
Links to ATOM and RSS feeds

Using nfs/nis to connect to a linux server on solaris

linux server: leif

solaris client: sisu

export the shares on leif to sisu and then exportfs -r

add an entry in /etc/hosts.allow on leif

on sisu modify the file /etc/auto_master and add the line

/- auto_direct

in /etc/auto_direct add lines like

/home -rw leif:/home

reboot and celebrate

if that is working its now time to set up nis to get remote logins

first set up the domainname in /etc/defaultdomain and use the domainname tool to set it

Create a directory named /var/yp/binding/domain

3. If you want the NIS client to broadcast for a NIS server (note: there must be a NIS server on your subnet), start NIS with /usr/lib/netsvc/yp/ypstart. If you want to manually specify one or more NIS server(s) to use, run ypinit -c and then /usr/lib/netsvc/yp/ypstart. Note that each manually specified NIS server must have an entry in /etc/hosts.

4. Modify the name service switch file (/etc/nsswitch.conf) to use the NIS databases. You may want to copy /etc/nsswitch.nis over /etc/nsswitch.conf. Make sure to modify the “hosts:” line in /etc/nsswitch.conf if you want to use DNS for hostname resolution:

ref: http://www.brandonhutchinson.com/Solaris_NIS_configuration.html

Posted on June 1, 2008


Comments

This post has 0 comments.

Leave a comment

python-powered-w-140x56.png vim_editor.gif Openssh.png