! Note: at least two user entries in passwd file necessary !
Server
======
- authconfig: enable NIS, domain "fast", server "fast", use shadow, MD5
- /etc/rc.d/init.d/ypserv start
/etc/rc.d/init.d/ypbind start
- /var/yp/Makefile:
# shadow -> shadow #
netgrp -> # netgrp
- /var/yp/secureent:
255.255.255.0 10.0.0.0
- /usr/lib/yp/ypinit -m
- Test: ypcat passwd
ypwhich
ypmatch stefan passwd
Client
======
- remove users from passwd/shadow
- [brsh] authconfig --enablenis --nisdomain fast --nisserver fast \
--useshadow --enablemd5 --kickstart
Update (after useradd)
======================
cd /var/yp; make |
- Set mark at current cursor position:
Ctrl-Space
- Define opposite corner of rectangle:
Move cursor to position
- Fill current rectangle with blanks:
Ctrl-X,R,O (open rectangle)
- Erase current rectangle:
Ctrl-X,R,K (kill rectangle)
- Copy current rectangle into internal buffer:
Ctrl-X,R,R (register rectangle)
- Paste (yank back) rectangle from internal buffer:
Ctrl-X,R,Y (yank rectangle) |