User management.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/netbsd.rst Thu Jun 02 16:19:45 2016 +0300
@@ -0,0 +1,53 @@
+.. -*- coding: utf-8; -*-
+
+========
+ NetBSD
+========
+.. contents::
+ :local:
+
+User management
+===============
+
+User in ``wheel`` group automatically get ``root`` permission with ``su``
+command, use one of::
+
+ $ su
+ $ su -
+
+To set user password::
+
+ $ passwd $USER
+
+To set user shell::
+
+ $ chsh
+ $ chpass -s /bin/ksh
+
+Network configuration
+=====================
+
+Set host name::
+
+ $ hostname $HOST
+ $ echo $HOST > /etc/myname
+
+Manually setup DHCP::
+
+ $ ifconfig # find out available interfaces
+ $ dhclient $IF
+ $ ifconfig # check out if thinks go ok
+
+
+Package management
+==================
+
+Easy way to install packages is to put::
+
+ export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/7.0/All
+
+into ``/root/.profile`` and run as root one of::
+
+ $ pkg_add emacs
+ $ pkg_add -v emacs
+