User management.
.. -*- 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