■
07/01/18 この日と同じコトしてる(;´Д`)
sudo のPAM設定 は make install 時に出てくるのは使わない。
> sudo -s
sudo: unable to initialize PAM: No such file or directory
ね。
> pwd
/usr/ports/security/sudo/work/sudo-1.6.8p12
say sample.pam
#%PAM-1.0
# Sample /etc/pam.d/sudo file for RedHat 9 / Fedora Core.
# For other Linux distributions you may want to
# use /etc/pam.d/sshd or /etc/pam.d/su as a guide.
cd /etc/pam.d/
cp su sudo
http://www.netbsd.org/guide/en/chap-pam.html
もっと良い案があった
# cd /etc/pam.d
# ln -s su sudo
_cur# cat > /usr/local/etc/sudoers *1
# Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
*1:or /etc/sudoers
cvsup@freebsd
% su
# pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/net/cvsup-without-gui-16.1h_3.tbz
# rehash
# cat > refuse
ports/chinese
ports/french
ports/german
ports/hebrew
ports/hungarian
ports/korean
ports/polish
ports/portuguese
ports/russian
ports/ukrainian
ports/vietnamese
doc/da_*
doc/de_*
doc/el_*
doc/es_*
doc/fr_*
doc/it_*
doc/nl_*
doc/no_*
doc/pl_*
doc/pt_*
doc/ru_*
doc/sr_*
doc/zh_*
# cat > conf
# if You Need current then
# *default tag=.
# if You Need FreeBSD 4.STABLE then
*default tag=RELENG_4
# if You Need FreeBSD 5.STABLE then
*default tag=RELENG_5
# if You Need FreeBSD 6.STABLE then
*default tag=RELENG_6
# if You Need FreeBSD 6.1 SECURE then
# *default tag=RELENG_6_1
*default host=cvsup.jp.FreeBSD.org
*default prefix=/usr
*default base=/root
*default release=cvs delete usr-rel-suffix compress
src-all release=cvs
ports-all release=cvs
# cvsup conf