Version 5 (modified by mitty, 13 years ago) (diff) |
---|
- useradd/usermod -> pwコマンド
bsd# pw usermod -n mitty -G wheel,mitty
ports
- FreeBSD:portupgradeと更新
- BSD にくびったけ - portsnap
portsnap は secure に FreeBSD の ports ツリーを更新することができるツールです。
- bsd# portsnap fetch
- bsd# portsnap extract
- 初回のみ
- bsd# portsnap update
make install with ports
- bsd# whereis sudo
sudo: /usr/ports/security/sudo
- bsd# cd /usr/ports/security/sudo
- bsd# make
cd /usr/ports/security/sudo && make config; ┌──────────────────────────────────┐ │ Options for sudo 1.8.1_5 │ (snip) ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE ===> Found saved configuration for sudo-1.8.1_5 => sudo-1.8.1p2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://www.sudo.ws/sudo/dist/sudo-1.8.1p2.tar.gz sudo-1.8.1p2.tar.gz 100% of 1209 kB 356 kBps ===> Extracting for sudo-1.8.1_5 => SHA256 Checksum OK for sudo-1.8.1p2.tar.gz. ===> Patching for sudo-1.8.1_5 (snip)
- bsd# make install
(snip) /usr/local/bin/sudo /usr/local/bin/sudoedit
- bsd# rehash
- bsd# visudo
- [mitty@bsd ~]$ whereis screen
screen: /usr/ports/sysutils/screen
- [mitty@bsd ~]$ cd /usr/ports/sysutils/screen
- [mitty@bsd /usr/ports/sysutils/screen]$ sudo make
- [mitty@bsd /usr/ports/sysutils/screen]$ sudo make install