User management.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 Jun 2016 16:19:45 +0300
changeset 1982 80c59ee7cfdc
parent 1981 ad12707cb8de
child 1983 af615af2ad5f
User management.
netbsd.rst
--- /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
+