wiki:TipAndDoc/FreeBSD

  • useradd/usermod -> pwコマンド
    bsd# pw usermod -n mitty -G wheel,mitty
    

ports

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
Last modified 6 years ago Last modified on Sep 14, 2011 4:54:38 PM