Tips to Setup NIS Client with OpenBSD

After post about Setup NIS Server with OpenBSD, now this post its about how to setup NIS Client.

* Enable RPC

/etc/rc.conf:
portmap=YES

* Enable NIS client

root # echo mynisdomain > /etc/defaultdomain

(Other client OSes may do this differently.)

We’ll start ypbind later.

* Enable Amd automounter

/etc/rc.conf:
amd=YES

root # echo “/home amd.home” >> /etc/amd/master

Note that the automounted home is mounted on top of the existing /home.

* Enable lockd for NFS locking (mutt uses it for example)

/etc/rc.conf:
rpc.lockd=YES

* Append NIS maps to passwd and group files

root # vipw # Append the following line
+:*::::::::

root # pwd_mkdb /etc/master.passwd

root # vi /etc/group # Append the following line
+:*::

Might also want to prepend a ‘+’ to existing group entries so that they are overriden by the NIS map entry. For example

+wheel:*:0:root

See passwd(5), group(5) and afterboot(8) for details.

* Install optional shells

Need to add shells needed by master accounts in same locations. For example if master has users with /bin/zsh then client needs a /bin/zsh too.

* Start the daemons

root # portmap
root # ypbind
root # amd -x error,noinfo,nostats -a /tmp_mnt -l syslog /home amd.home
root # rpc.lockd

These will restart on boot.

Non OpenBSD clients are similar but differ in the details, for example, my FreeBSD 5.3 client has an /etc/rc.conf containing these lines:

rpcbind_enable=”YES”
nisdomainname=”mynisdomain”
nis_client_enable=”YES”
amd_enable=”YES”
amd_flags=”-x error,noinfo,nostats -a /.amd_mnt -l syslog /home amd.home”
nfs_client_enable=”YES”
rpc_lockd_enable=”YES”

Source : www.openbsdsupport.org

Popular Tags for the article:

openbsd nis, nis server howto bsd, openbsd amd master, setup amd and nis, yp client in openbsd

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • BlinkList
  • blogmarks
  • Blogosphere News
  • connotea
  • LinkaGoGo
  • LinkedIn
  • Live
  • MyShare
  • MySpace
  • RSS
  • StumbleUpon
  • Technorati
  • Webnews.de
  • Yahoo! Bookmarks
  • Yahoo! Buzz

Related posts:

  1. Tips to Setup NIS Server with OpenBSD
  2. Tips Default Asterisk Manager Password Used
  3. Tips Configure VLan Interface on OpenBSD
  4. Tips Block Access to Downloads n Browsing at Mikrotik with Schedule
  5. Tips for Set Up an OpenVPN Server

Leave a Reply