OpenBSD in a simple way 2

Pada posting sebelumnya di SINI , saya akan lanjutkan pada artikel berikut ini.

DEBUG PF WITH TCPDUMP

 tcpdump -nettti pflog0  

Manual: tcpdump(8)

PF USER’S GUIDE

http://www.openbsd.org/faq/pf

PF and Networking Tutorial

MANAGE USERS

# Manually 
user [add|del|info|mod] foobar  

# Add users interactively 
adduser  

# Remove users interactively 
rmuser  

Read: adduser(8)

MANAGE GROUPS

File: /etc/group
 group [add|del|info|mod] foobar  

Semua member di “wheel” group bisa menggunakan  su(1)  untuk menjadi root.

Read: group(8), group(5)

SUDO REPLACED WITH DOAS(1)

## file: /etc/doas.conf 
# Permit the user 'Math' to reboot the box 

permit nopass math as root cmd /sbin/reboot  
 # Marc can now reboot the box 

$ doas reboot  

Read: doas(1), doas.conf(5)

Try doas mastery website.

INSTALL PACKAGES

 # By default, the /etc/installurl file already contains an OpenBSD mirror server URL 

https://cdn.openbsd.org/pub/OpenBSD 
 # For example, to install Package Manager
 pkg_add pkg_mgr  

Lihat di  /usr/local/share/doc/pkg-readmes untuk keterangan lebih / documentation.

Read: pkg_add(1), installurl(5)

PACKAGES

# List packages installed
 pkg_info

# Show the files within each package
 pkg_info -L foobar    
 
# View install-message for a specific package
 pkg_info -M foobar
  
# Delete a Package
 pkg_delete foobar  

# Show unused dependencies
 pkg_delete -an  

# Delete unused dependencies
 pkg_delete -a  

# Delete all except 'nginx'
 pkg_delete -X nginx 

Read: pkg_info(1), packages(7)

Leave a Reply

Your email address will not be published. Required fields are marked *